fix: ldap users aren't deleted if removed from ldap server

This commit is contained in:
Elias Schneider
2025-03-29 22:55:44 +01:00
parent 583a1f8fee
commit 7e658276f0
3 changed files with 4 additions and 4 deletions

View File

@@ -170,7 +170,7 @@ func (uc *UserController) getCurrentUserHandler(c *gin.Context) {
// @Success 204 "No Content"
// @Router /api/users/{id} [delete]
func (uc *UserController) deleteUserHandler(c *gin.Context) {
if err := uc.userService.DeleteUser(c.Param("id")); err != nil {
if err := uc.userService.DeleteUser(c.Param("id"), false); err != nil {
_ = c.Error(err)
return
}