Browse Source

maintenanceperms

main
Madiwka3 1 year ago
parent
commit
8ca382716c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/apis/v1/route_vehicle.py

+ 1
- 1
app/apis/v1/route_vehicle.py View File

@@ -132,7 +132,7 @@ def update_vehicle(
db: Session = Depends(get_db),
current_user: User = Depends(get_current_user),
):
if current_user.Role != "Admin":
if current_user.Role != "Admin" and current_user.Role != "Maintenance":
raise HTTPException(
status_code=403, detail="You are not authorized to perform this action"
)


Loading…
Cancel
Save