diff options
author | Christopher Ng <chrng8@gmail.com> | 2025-03-25 14:31:45 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2025-03-25 14:31:45 -0700 |
commit | d5881b02c58a05bae26c303dc2fb1f77bc278612 (patch) | |
tree | 6cf1af2106bddb70d98b230cefa38c73435ee5e2 | |
parent | ea8da668e52a927e8503f62b3be013956a5951f8 (diff) | |
download | nextcloud-server-d5881b02c58a05bae26c303dc2fb1f77bc278612.tar.gz nextcloud-server-d5881b02c58a05bae26c303dc2fb1f77bc278612.zip |
fix(settings): Preserve system groups on reset
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r-- | apps/settings/src/store/users.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings/src/store/users.js b/apps/settings/src/store/users.js index bab150d7229..6f7e2dbded7 100644 --- a/apps/settings/src/store/users.js +++ b/apps/settings/src/store/users.js @@ -232,7 +232,12 @@ const mutations = { * @param {object} state the store state */ resetGroups(state) { - state.groups = [...usersSettings.systemGroups] + const systemGroups = state.groups.filter(group => [ + 'admin', + '__nc_internal_recent', + 'disabled', + ].includes(group.id)) + state.groups = [...systemGroups] }, setShowConfig(state, { key, value }) { |