fix disable users by group

This commit is contained in:
Michael Barz
2023-06-02 16:59:56 +02:00
parent 80b4e85747
commit 58d8c1aa8a
2 changed files with 6 additions and 1 deletions

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

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