is_joinable -> join_rule

This commit is contained in:
Luke Barnard 2018-04-05 16:31:57 +01:00
parent f8d1917fce
commit ae85c7804e
2 changed files with 2 additions and 5 deletions

View file

@ -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)