chore: build
Backend - Build & Lint / build (push) Failing after 16m17s

This commit is contained in:
Nuxgrid
2026-07-08 21:54:00 +02:00
parent 5cd8ada828
commit 12a7facc45
19 changed files with 93 additions and 611 deletions
+3 -19
View File
@@ -32,29 +32,13 @@ func NormalizePhoneNumber(phone string) string {
}
func CheckRoleAdmin(c *gin.Context, role string) bool {
if role == "admin" {
return true
}
return false
return role == "admin"
}
func CheckRoleClient(c *gin.Context, role string) bool {
if role == "client" {
return true
}
return false
return role == "client"
}
func CheckRoleCabine(c *gin.Context, role string) bool {
if role == "cabine" {
return true
}
return false
}
func CheckRoleLivreur(c *gin.Context, role string) bool {
if role == "livreur" {
return true
}
return false
return role == "cabine"
}