storage #46

Merged
goc_daniel merged 14 commits from storage into main 2026-04-08 13:58:23 +00:00
Showing only changes of commit 578d8c6cac - Show all commits

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",
})