Skip to content

The agent that grows with you

fix: retain source-free authority control projections

Teknium3546eb41a933
diff --git a/gateway/session_authority.py b/gateway/session_authority.py
index 111013a4c33..50693039f6f 100644
--- a/gateway/session_authority.py
+++ b/gateway/session_authority.py
@@ -60,7 +60,7 @@ class SessionAuthority:
restore_local_session(self, ref.session_id)
from gateway.config import Platform
source = self.sessions[ref.session_id].source
- if source.platform == Platform.LOCAL and source.user_id != actor.subject:
+ if source is not None and source.platform == Platform.LOCAL and source.user_id != actor.subject:
raise RuntimeStoreError('permission_denied')
def _require_admission_open(self):