backend: Add concurrency checks to admin user edits

This commit is contained in:
GonnaHetzMe committed 2026-12-04 18:25:30 +01:00
1 parent 91d0c06c83
commit bd8eb65e56
18 files changed
+216 -23

No files matched your search

@@ -17,6 +17,8 @@ public sealed class AdminUserForm
[BindNever]
public AdminUsersQuery Query { get; set; } = new();
public int? RowVersion { get; set; }
[Display(Name = "Jméno"), Required(ErrorMessage = "Zadejte jméno."), StringLength(100)]
public string FirstName { get; set; } = "";
@@ -46,5 +48,5 @@ public sealed class AdminUserForm
public bool EmailNotificationsEnabled { get; set; } = true;
public SaveAdminUserRequest ToRequest() => new(Email.Trim(), FirstName.Trim(), LastName.Trim(), Phone,
Role, IsActive, EmailConfirmed, EmailNotificationsEnabled, Password);
Role, IsActive, EmailConfirmed, EmailNotificationsEnabled, Password, RowVersion);
}