mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
realm: Only owners should be able to configure can_manage_all_groups.
This commit is contained in:
committed by
Tim Abbott
parent
2b6414acfb
commit
91953eca28
@@ -230,6 +230,7 @@ def update_realm(
|
||||
or invite_required is not None
|
||||
or create_multiuse_invite_group_id is not None
|
||||
or can_create_groups is not None
|
||||
or can_manage_all_groups is not None
|
||||
) and not user_profile.is_realm_owner:
|
||||
raise OrganizationOwnerRequiredError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user