mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 05:30:07 +00:00
pep8
This commit is contained in:
parent
6850f8aea3
commit
112c2253e2
2 changed files with 4 additions and 2 deletions
|
@ -872,7 +872,7 @@ class TransportLayerClient(object):
|
|||
|
||||
@log_function
|
||||
def set_group_join_policy(self, destination, group_id, requester_user_id,
|
||||
content):
|
||||
content):
|
||||
"""Sets the join policy for a group
|
||||
"""
|
||||
path = PREFIX + "/groups/%s/settings/m.join_policy" % (group_id,)
|
||||
|
|
|
@ -741,7 +741,9 @@ class GroupsServerHandler(object):
|
|||
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":
|
||||
raise SynapseError(403, "Group is not publicly joinable")
|
||||
|
||||
|
|
Loading…
Reference in a new issue