develop #1
@@ -1631,8 +1631,8 @@ def export_inspection_to_pdf(
|
||||
if not inspection:
|
||||
raise HTTPException(status_code=404, detail="Inspección no encontrada")
|
||||
|
||||
# Verificar permisos (admin o mecánico dueño)
|
||||
if current_user.role != "admin" and inspection.mechanic_id != current_user.id:
|
||||
# Verificar permisos (admin, asesor o mecánico dueño)
|
||||
if current_user.role not in ["admin", "asesor"] and inspection.mechanic_id != current_user.id:
|
||||
raise HTTPException(status_code=403, detail="No tienes permisos para ver esta inspección")
|
||||
|
||||
# Obtener datos relacionados
|
||||
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
retries: 5
|
||||
|
||||
backend:
|
||||
image: dymai/syntria-backend:1.0.10
|
||||
image: dymai/syntria-backend:1.0.11
|
||||
container_name: syntria-backend-prod
|
||||
restart: always
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user