summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-10-27 10:48:01 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-10-27 10:48:01 +0100
commit2ca46c7afcb0e0fe780e2ef2d8cefd34669fb1a9 (patch)
tree9d913af633820bb3fd85727f9ff05a5040f67735
parentMake it work (diff)
downloadsynapse-2ca46c7afcb0e0fe780e2ef2d8cefd34669fb1a9.tar.xz
Correct logic for checking private group membership
Diffstat (limited to '')
-rw-r--r--synapse/groups/groups_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/groups/groups_server.py b/synapse/groups/groups_server.py
index eac2f41768..054d56abec 100644
--- a/synapse/groups/groups_server.py
+++ b/synapse/groups/groups_server.py
@@ -69,7 +69,7 @@ class GroupsServerHandler(object):
             raise SynapseError(404, "Unknown group")
 
         is_user_in_group = yield self.store.is_user_in_group(requester_user_id, group_id)
-        if not is_user_in_group or not group.is_public:
+        if group and not is_user_in_group and not group.is_public:
             raise SynapseError(404, "Unknown group")
 
         if and_is_admin: