Build [v1.4.1] - Security hardening, PWA and UI refinements
This commit is contained in:
@@ -141,7 +141,7 @@ def update_item(
|
||||
def delete_item(
|
||||
item_id: int,
|
||||
db: Session = Depends(get_db),
|
||||
current_user: auth.TokenData = Depends(auth.get_current_user)
|
||||
current_user: auth.TokenData = Depends(auth.get_current_admin)
|
||||
):
|
||||
"""[C-01] Delete item — only for authenticated users. InterventionItems are cleared; AuditLogs are KEPT for history."""
|
||||
db_item = db.query(models.Item).filter(models.Item.id == item_id).first()
|
||||
|
||||
Reference in New Issue
Block a user