diff options
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index cfe0a2abca..1401e8a2b0 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -516,9 +516,9 @@ class Auth(object): defer.returnValue(user_info) def get_appservice_by_req(self, request): - (user_id, appservice) = self._get_appservice_user_id(request) - request.authenticated_entity = service.sender - return appservice + (user_id, app_service) = self._get_appservice_user_id(request) + request.authenticated_entity = app_service.sender + return app_service def is_server_admin(self, user): """ Check if the given user is a local server admin. |