mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 08:39:26 -05:00
Correct logic for checking private group membership
This commit is contained in:
parent
69e8a05f35
commit
2ca46c7afc
@ -69,7 +69,7 @@ class GroupsServerHandler(object):
|
|||||||
raise SynapseError(404, "Unknown group")
|
raise SynapseError(404, "Unknown group")
|
||||||
|
|
||||||
is_user_in_group = yield self.store.is_user_in_group(requester_user_id, group_id)
|
is_user_in_group = yield self.store.is_user_in_group(requester_user_id, group_id)
|
||||||
if not is_user_in_group or not group.is_public:
|
if group and not is_user_in_group and not group.is_public:
|
||||||
raise SynapseError(404, "Unknown group")
|
raise SynapseError(404, "Unknown group")
|
||||||
|
|
||||||
if and_is_admin:
|
if and_is_admin:
|
||||||
|
Loading…
Reference in New Issue
Block a user