chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-11 02:29:13 +09:00
1 parent 39777e35d8
commit c951b4f262
69 files changed
+143 -29

No files matched your search

+1 -3
View File
@@ -484,9 +484,7 @@ async def update_tools_by_id(
if form_data.content != tools.content:
if user.role != 'admin' and not (
await has_permission(user.id, 'workspace.tools', request.app.state.config.USER_PERMISSIONS, db=db)
or await has_permission(
user.id, 'workspace.tools_import', request.app.state.config.USER_PERMISSIONS, db=db
)
or await has_permission(user.id, 'workspace.tools_import', request.app.state.config.USER_PERMISSIONS, db=db)
):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,