0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-05 22:28:54 +01:00

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.
This commit is contained in:
Daniel Wagner-Hall 2016-01-18 16:33:05 +00:00
parent 74474a6d63
commit 808a8aedab

View file

@ -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(