settings: Show realm permissions that group has in permissions panel.

This commit is contained in:
Sahil Batra
2025-01-15 19:32:08 +05:30
committed by Tim Abbott
parent 10d7da81a0
commit 893cdc8069
12 changed files with 410 additions and 7 deletions

View File

@@ -294,6 +294,18 @@ export function dispatch_normal_event(event) {
settings_org.sync_realm_settings(key);
}
if (
Object.keys(
realm.server_supported_permission_settings.realm,
).includes(key)
) {
const $elem = $(`#id_group_permission_${CSS.escape(key)}`);
user_group_edit.update_setting_in_group_permissions_panel(
$elem,
value,
);
}
if (
key === "create_multiuse_invite_group" ||
key === "can_invite_users_group"