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:
Arthur Schiwon 2023-04-11 10:57:20 +02:00 committed by GitHub
commit 75b7e07333
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -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