settings: Add "can_manage_billing_group" realm setting.

Added "can_manage_billing_group" realm group permission setting
to control who can manage billing and plans in the organization.

Fixes #32745.
This commit is contained in:
Vector73
2025-03-08 21:36:05 +00:00
committed by Tim Abbott
parent 2a0f3c9746
commit 158fd58cde
43 changed files with 411 additions and 296 deletions

View File

@@ -41,6 +41,7 @@ from zerver.lib.event_types import (
EventPresence,
EventReactionAdd,
EventReactionRemove,
EventRealmBilling,
EventRealmBotAdd,
EventRealmBotDelete,
EventRealmBotUpdate,
@@ -175,6 +176,7 @@ check_muted_users = make_checker(EventMutedUsers)
check_onboarding_steps = make_checker(EventOnboardingSteps)
check_reaction_add = make_checker(EventReactionAdd)
check_reaction_remove = make_checker(EventReactionRemove)
check_realm_billing = make_checker(EventRealmBilling)
check_realm_bot_delete = make_checker(EventRealmBotDelete)
check_realm_deactivated = make_checker(EventRealmDeactivated)
check_realm_domains_add = make_checker(EventRealmDomainsAdd)