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:
Sahil Batra
2023-11-23 14:44:35 +05:30
committed by Tim Abbott
parent c90d00faea
commit 189718dc64
10 changed files with 106 additions and 3 deletions

View File

@@ -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) => {