mirror of
https://github.com/nextcloud/server.git
synced 2026-03-21 01:52:08 -04:00
fix(settings): Preserve system groups on reset
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
e2c2419f42
commit
06dbcde4bf
1 changed files with 6 additions and 1 deletions
|
|
@ -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 }) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue