summary refs log tree commit diff
path: root/synapse/groups/groups_server.py
diff options
context:
space:
mode:
authorLuke Barnard <luke@matrix.org>2018-04-05 16:31:57 +0100
committerLuke Barnard <luke@matrix.org>2018-04-06 15:43:27 +0100
commitae85c7804e733aa1adaed06a9de51445a084858e (patch)
treea052983e6773886fb454f57e29867cd4e022fa17 /synapse/groups/groups_server.py
parentFix federation client `set_group_joinable` typo (diff)
downloadsynapse-ae85c7804e733aa1adaed06a9de51445a084858e.tar.xz
is_joinable -> join_rule
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 2c02da4725..507ec232c5 100644
--- a/synapse/groups/groups_server.py
+++ b/synapse/groups/groups_server.py
@@ -746,7 +746,7 @@ class GroupsServerHandler(object):
         group_info = yield self.store.get_group(
             group_id,
         )
-        if not group_info['is_joinable']:
+        if group_info['join_policy'] != "open":
             raise SynapseError(403, "Group is not publicly joinable")
 
         local_attestation = yield self.add_user(group_id, requester_user_id, content)