summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-10-27 11:08:19 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-10-27 11:08:19 +0100
commit124314672fdc984255277e504215889ebd1de0ed (patch)
tree906daf37a4e77f4638803145da47f37556c28785
parentCreate groups with is_public = True (diff)
downloadsynapse-124314672fdc984255277e504215889ebd1de0ed.tar.xz
group is dict
-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 175ff433a1..4f9e459136 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 group and not is_user_in_group and 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: