From 29cb5513a03d1a9571969c8a42deec9b2bdee037 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 27 Jun 2025 17:14:53 +0200 Subject: [PATCH] fix: users can't be updated by admin if self account editing is disabled --- backend/internal/service/user_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/service/user_service.go b/backend/internal/service/user_service.go index 315900d4..b0c025cd 100644 --- a/backend/internal/service/user_service.go +++ b/backend/internal/service/user_service.go @@ -297,7 +297,7 @@ func (s *UserService) updateUserInternal(ctx context.Context, userID string, upd allowOwnAccountEdit := s.appConfigService.GetDbConfig().AllowOwnAccountEdit.IsTrue() // For LDAP users or if own account editing is not allowed, only allow updating the locale unless it's an LDAP sync - if !isLdapSync && (isLdapUser || (!allowOwnAccountEdit && !updateOwnUser)) { + if !isLdapSync && (isLdapUser || (!allowOwnAccountEdit && updateOwnUser)) { user.Locale = updatedUser.Locale } else { user.FirstName = updatedUser.FirstName