mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #36509 from nextcloud/fix/user-management/delete-user-hidden-group
fix(user-management): Fix deleting user in hidden group(s)
This commit is contained in:
commit
3473b69ad2
3 changed files with 7 additions and 3 deletions
|
|
@ -184,6 +184,10 @@ const mutations = {
|
|||
state.userCount-- // decrement Active Users count
|
||||
user.groups.forEach(userGroup => {
|
||||
const group = state.groups.find(groupSearch => groupSearch.id === userGroup)
|
||||
if (!group) {
|
||||
console.warn('User group ' + userGroup + ' does not exist during user removal')
|
||||
return
|
||||
}
|
||||
group.usercount-- // decrement group total count
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue