mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
settings: Add support to change user-access setting in development.
This commit updates the backend code to allow changing can_access_all_users_group setting in development environment and also adds a dropdown in webapp UI which is only shown in development environment.
This commit is contained in:
@@ -240,6 +240,7 @@ export function get_realm_user_groups_for_dropdown_list_widget(
|
||||
allow_owners_group,
|
||||
allow_nobody_group,
|
||||
allow_everyone_group,
|
||||
allowed_system_groups,
|
||||
} = group_setting_config;
|
||||
|
||||
const system_user_groups = settings_config.system_user_groups_list
|
||||
@@ -260,6 +261,10 @@ export function get_realm_user_groups_for_dropdown_list_widget(
|
||||
return false;
|
||||
}
|
||||
|
||||
if (allowed_system_groups.length && !allowed_system_groups.includes(group.name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
})
|
||||
.map((group) => {
|
||||
|
||||
Reference in New Issue
Block a user