merged with current main

This commit is contained in:
Daniel Goc
2026-04-08 13:20:07 +02:00
parent cbd0baaa50
commit 578d8c6cac

View File

@@ -125,7 +125,7 @@ func RequireAdmin() fiber.Handler {
})
}
if originalUserRole != model.RoleAdmin {
if model.CustomerRole(originalUserRole.Name) != model.RoleAdmin {
return c.Status(fiber.StatusForbidden).JSON(fiber.Map{
"error": "admin access required",
})