Merge pull request #6435 from owncloud/fix-disable-users

fix disable users by group
This commit is contained in:
Michael Barz authored and GitHub committed 2023-06-05 10:16:57 +02:00
commit 3385b0764e
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
Bugfix: Fix error message when disabling users
When we disable users by adding them to a group we do not need to update the user entry.
https://github.com/owncloud/ocis/pull/6435
+1 -1
View File
@@ -1178,7 +1178,7 @@ func (i *LDAP) updateAccountEnabledState(logger log.Logger, accountEnabled bool,
} else {
err = i.disableUser(logger, e.DN)
}
updateNeeded = true
updateNeeded = false
}
return updateNeeded, err