chore: build

This commit is contained in:
2026-06-15 21:16:37 +02:00
parent 9cf462abdd
commit 5e37f4263c
@@ -22,7 +22,6 @@ import (
func GetDeliveryPersonDetails(c *gin.Context) { func GetDeliveryPersonDetails(c *gin.Context) {
database := c.MustGet("database").(*db.Database) database := c.MustGet("database").(*db.Database)
// ✅ SÉCURITÉ: Admin seulement
userRole := c.GetString("role") userRole := c.GetString("role")
if userRole != "admin" && userRole != "cabine" && userRole != "livreur" { if userRole != "admin" && userRole != "cabine" && userRole != "livreur" {
log.Printf("❌ [GET_DELIVERY_DETAILS] Accès refusé - role=%s", userRole) log.Printf("❌ [GET_DELIVERY_DETAILS] Accès refusé - role=%s", userRole)