diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-08-27 15:31:04 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-08-27 16:51:54 +0100 |
commit | b30358f439aeec4e249c0d21d761cf6742e65578 (patch) | |
tree | dc22532c93f3af8005d67942fb32c3f0710c808e /synapse/api | |
parent | Start updating state handling to use snapshots (diff) | |
download | synapse-b30358f439aeec4e249c0d21d761cf6742e65578.tar.xz |
add _get_room_member, fix datastore methods
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/auth.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index ef3604077d..2473a2b2bb 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -78,7 +78,9 @@ class Auth(object): def _check_joined_room(self, member, user_id, room_id): if not member or member.membership != Membership.JOIN: - raise AuthError(403, "User %s not in room %s" % (user_id, room_id)) + raise AuthError(403, "User %s not in room %s (%s)" % ( + user_id, room_id, repr(member) + )) @defer.inlineCallbacks def is_membership_change_allowed(self, event): |