mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #37267 from nextcloud/enh/36579/new-attempt
[stable25] fix(user-management): Fix deleting user in hidden group(s)
This commit is contained in:
commit
75b7e07333
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