fix delete modal
All checks were successful
Deploy Amap / deploy (push) Successful in 41s

This commit is contained in:
Julien Aldon
2026-03-06 15:50:30 +01:00
parent 61710a0347
commit 74bf1474e2
8 changed files with 35 additions and 31 deletions

View File

@@ -203,7 +203,7 @@ def get_contract_files(
user: models.User = Depends(get_current_user)
):
"""Get all contract files for a given form"""
if not service.is_allowed(session, user, form_id):
if not form_service.is_allowed(session, user, form_id):
raise HTTPException(
status_code=403,
detail=messages.Messages.not_allowed('contracts', 'get')

View File

@@ -49,7 +49,6 @@ async def preview_delete(
session,
_id
)
print(result)
except exceptions.FormNotFoundError as error:
raise HTTPException(status_code=404, detail=str(error)) from error
return result

View File

@@ -116,7 +116,6 @@ def get_delete_dependencies(
form = result.first()
if not form:
raise exceptions.FormNotFoundError(messages.Messages.not_found('form'))
print(_id)
statement_shipment = (
select(models.Shipment)
.where(models.Shipment.form_id == _id)