fixed update user dto for proper role handling and changed back button in user settings

This commit is contained in:
tdv
2025-12-04 17:24:24 +02:00
parent 1284c1c4c1
commit d0da7962e2
4 changed files with 32 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ type CreateUserDto struct {
type UpdateUserDto struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Role string `json:"role,omitempty" binding:"oneof=admin user"`
Role string `json:"role,omitempty"`
}
func MapUser(u models.User) UserDto {