This commit is contained in:
Luke Barnard 2018-04-05 17:32:20 +01:00
parent 6850f8aea3
commit 112c2253e2
2 changed files with 4 additions and 2 deletions

View File

@ -741,7 +741,9 @@ class GroupsServerHandler(object):
This will error if the group requires an invite/knock to join This will error if the group requires an invite/knock to join
""" """
group_info = yield self.check_group_is_ours(group_id, requester_user_id, and_exists=True) group_info = yield self.check_group_is_ours(
group_id, requester_user_id, and_exists=True
)
if group_info['join_policy'] != "open": if group_info['join_policy'] != "open":
raise SynapseError(403, "Group is not publicly joinable") raise SynapseError(403, "Group is not publicly joinable")