mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
user_groups: Remove "@" from name of role-based system groups.
This commit removes "@" from name of role-based system groups
since we have added a restricion on having user group names
starting with "@" in the previous commit as they look odd in
mention syntax.
We also add a migration in this commit to update the name of
role-based system groups in existing realms to remove "@"
from the name. This migration also updates the names of
non-system user groups by removing the invalid prefixes
from their names and if there is a group already with that
name, we insted name the group as "group:{group_id}".
Fixes #26148.
This commit is contained in:
@@ -236,15 +236,15 @@ export function get_realm_user_groups_for_dropdown_list_widget(
|
||||
|
||||
const system_user_groups = settings_config.system_user_groups_list
|
||||
.filter((group) => {
|
||||
if (!allow_internet_group && group.name === "@role:internet") {
|
||||
if (!allow_internet_group && group.name === "role:internet") {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!allow_owners_group && group.name === "@role:owners") {
|
||||
if (!allow_owners_group && group.name === "role:owners") {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!allow_nobody_group && group.name === "@role:nobody") {
|
||||
if (!allow_nobody_group && group.name === "role:nobody") {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user