diff options
author | Erik Johnston <erikj@matrix.org> | 2023-09-14 12:46:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 12:46:30 +0100 |
commit | 954921736b88de25c775c519a206449e46b3bf07 (patch) | |
tree | d4e428b26c39659d9da44996d9d3db3bcf6f2ddd /synapse/api/auth/internal.py | |
parent | Remove a reference cycle in background process (#16314) (diff) | |
download | synapse-954921736b88de25c775c519a206449e46b3bf07.tar.xz |
Refactor `get_user_by_id` (#16316)
Diffstat (limited to 'synapse/api/auth/internal.py')
-rw-r--r-- | synapse/api/auth/internal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth/internal.py b/synapse/api/auth/internal.py index 6a5fd44ec0..a75f6f2cc4 100644 --- a/synapse/api/auth/internal.py +++ b/synapse/api/auth/internal.py @@ -268,7 +268,7 @@ class InternalAuth(BaseAuth): stored_user = await self.store.get_user_by_id(user_id) if not stored_user: raise InvalidClientTokenError("Unknown user_id %s" % user_id) - if not stored_user["is_guest"]: + if not stored_user.is_guest: raise InvalidClientTokenError( "Guest access token used for regular user" ) |