mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
settings: Add nobody option for invite_to_realm_policy in frontend.
This commit is contained in:
@@ -137,6 +137,12 @@ function user_has_permission(policy_value) {
|
||||
}
|
||||
|
||||
export function user_can_invite_others_to_realm() {
|
||||
if (
|
||||
page_params.realm_invite_to_realm_policy ===
|
||||
settings_config.invite_to_realm_policy_values.nobody.code
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
return user_has_permission(page_params.realm_invite_to_realm_policy);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user