chore: format backend

This commit is contained in:
Timothy Jaeryang Baek committed 2025-01-19 11:59:07 -08:00
1 parent a1e33a82f0
commit bdc60e7850
5 files changed
+28 -11

No files matched your search

+5 -1
View File
@@ -166,7 +166,11 @@ async def update_tools_by_id(
)
# Is the user the original creator, in a group with write access, or an admin
if tools.user_id != user.id and not has_access(user.id, "write", tools.access_control) and user.role != "admin":
if (
tools.user_id != user.id
and not has_access(user.id, "write", tools.access_control)
and user.role != "admin"
):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail=ERROR_MESSAGES.UNAUTHORIZED,