mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 19:43:47 +00:00
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:
@@ -750,7 +750,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin, UserBaseSettings):
|
||||
|
||||
@property
|
||||
def has_billing_access(self) -> bool:
|
||||
return self.is_realm_owner or self.is_billing_admin
|
||||
return self.has_permission("can_manage_billing_group")
|
||||
|
||||
@property
|
||||
def is_realm_owner(self) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user