Fix bug where synapse was sending AS user queries incorrectly.

Bug introduced in 92b20713d7
which reversed the comparison when checking if a user existed
in the users table. Added UTs to prevent this happening again.
This commit is contained in:
Kegan Dougal 2015-06-17 17:26:03 +01:00
parent 9a3cd1c00d
commit d88e20cdb9
2 changed files with 44 additions and 1 deletions

View file

@ -177,7 +177,7 @@ class ApplicationServicesHandler(object):
return
user_info = yield self.store.get_user_by_id(user_id)
if not user_info:
if user_info:
defer.returnValue(False)
return