diff options
author | Christopher Ng <chrng8@gmail.com> | 2025-03-25 14:31:45 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2025-03-28 14:17:53 -0700 |
commit | 06dbcde4bfba4bc4476bde3b98355d9a0bad3089 (patch) | |
tree | b9b7be87191f39a1ab3db8dc22e21776dcddc3d3 /apps/settings/src | |
parent | e2c2419f427b9f184c032493ac801de9523ce8d7 (diff) | |
download | nextcloud-server-06dbcde4bfba4bc4476bde3b98355d9a0bad3089.tar.gz nextcloud-server-06dbcde4bfba4bc4476bde3b98355d9a0bad3089.zip |
fix(settings): Preserve system groups on reset
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/settings/src')
-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 }) { |