mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 11:19:23 -05:00
Get group_info from existing call to check_group_is_ours
This commit is contained in:
parent
cd087a265d
commit
6850f8aea3
@ -741,11 +741,7 @@ 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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
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)
|
||||||
|
|
||||||
group_info = yield self.store.get_group(
|
|
||||||
group_id,
|
|
||||||
)
|
|
||||||
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")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user