summary refs log tree commit diff
path: root/synapse/groups/groups_server.py
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-10-26 17:55:58 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-10-26 17:55:58 +0100
commit69e8a05f355f24bb1377b7d39812f98ea9f28bb4 (patch)
treeabf53747e880c570ad6de979113d46d3c47583f0 /synapse/groups/groups_server.py
parentRecreate groups table instead of adding column (diff)
downloadsynapse-69e8a05f355f24bb1377b7d39812f98ea9f28bb4.tar.xz
Make it work
Diffstat (limited to 'synapse/groups/groups_server.py')
-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 75634febd0..eac2f41768 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 is_user_in_group or not group.is_public:
+        if not is_user_in_group or not group.is_public:
             raise SynapseError(404, "Unknown group")
 
         if and_is_admin: