chore: build

This commit is contained in:
2026-06-16 08:40:51 +02:00
parent 153780073f
commit 74bb299099
-1
View File
@@ -20,7 +20,6 @@ import (
func GetDeliveryPersonMapLinks(c *gin.Context) { func GetDeliveryPersonMapLinks(c *gin.Context) {
database := c.MustGet("database").(*db.Database) database := c.MustGet("database").(*db.Database)
// Vérification du rôle admin
userRole := c.GetString("role") userRole := c.GetString("role")
if userRole != "admin" && userRole != "cabine" { if userRole != "admin" && userRole != "cabine" {
c.JSON(http.StatusForbidden, gin.H{"error": "Accès refusé"}) c.JSON(http.StatusForbidden, gin.H{"error": "Accès refusé"})