Skip to content

Commit

Permalink
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
timelessnesses committed Mar 1, 2024
1 parent 6a4c9ea commit ff33d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def a():
accessers = await d.fetch("SELECT accessers FROM folders WHERE id = $1", folder_id, record_class=FolderRecord)
print(role, accessers)
print(role[0].roles == "admin", role[0].username in accessers[0].accessers)
if role[0].username not in accessers[0].accessers or role[0].roles != "admin":
if role[0].username not in accessers[0].accessers and role[0].roles != "admin":
await show_header(db, f"Inaccessible Folder")
with ui.card().classes("absolute-center"):
ui.label(
Expand Down

0 comments on commit ff33d00

Please sign in to comment.