summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2016-01-18 16:33:05 +0000
committerDaniel Wagner-Hall <daniel@matrix.org>2016-01-18 16:33:05 +0000
commit808a8aedab4dbd2166b5935b86edf65501cc24a3 (patch)
tree5ee62362833dd06ab3884f1c1690bc1b910ec8cc /synapse
parentPull out app service user lookup (diff)
downloadsynapse-808a8aedab4dbd2166b5935b86edf65501cc24a3.tar.xz
Don't error on AS non-ghost user use
This will probably go away either when we fix our existing ASes, or when
we kill the concept of non-ghost users.
Diffstat (limited to '')
-rw-r--r--synapse/api/auth.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index cc0296adf3..b5536e8565 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -562,6 +562,8 @@ class Auth(object):
             defer.returnValue(app_service.sender)
 
         user_id = request_args["user_id"][0]
+        if app_service.sender == user_id:
+            defer.returnValue(app_service.sender)
 
         if not app_service.is_interested_in_user(user_id):
             raise AuthError(