Skip to content

Commit

Permalink
Merge pull request #6435 from owncloud/fix-disable-users
Browse files Browse the repository at this point in the history
fix disable users by group
  • Loading branch information
micbar authored Jun 5, 2023
2 parents 80b4e85 + 58d8c1a commit 3385b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-disable-user.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion services/graph/pkg/identity/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3385b07

Please sign in to comment.