summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-08-27 15:31:04 +0100
committerMark Haines <mark.haines@matrix.org>2014-08-27 16:51:54 +0100
commitb30358f439aeec4e249c0d21d761cf6742e65578 (patch)
treedc22532c93f3af8005d67942fb32c3f0710c808e /synapse/api/auth.py
parentStart updating state handling to use snapshots (diff)
downloadsynapse-b30358f439aeec4e249c0d21d761cf6742e65578.tar.xz
add _get_room_member, fix datastore methods
Diffstat (limited to '')
-rw-r--r--synapse/api/auth.py4
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):