fix: workflow route remove is_system_admin param not accepted by service
This commit is contained in:
@@ -54,11 +54,10 @@ async def create_workflow(
|
||||
"""Create a new workflow definition. Requires write permission."""
|
||||
tenant_id = uuid.UUID(current_user["tenant_id"])
|
||||
user_id = uuid.UUID(current_user["user_id"])
|
||||
is_admin = current_user.get("is_system_admin", False)
|
||||
|
||||
data = body.model_dump()
|
||||
try:
|
||||
return await workflow_service.create_workflow(db, tenant_id, user_id, data, is_system_admin=is_admin)
|
||||
return await workflow_service.create_workflow(db, tenant_id, user_id, data)
|
||||
except PermissionError as e:
|
||||
raise HTTPException(status_code=403, detail=str(e)) from e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user