diff --git a/src/views/folder.py b/src/views/folder.py index 65c46e8..f6eba5b 100644 --- a/src/views/folder.py +++ b/src/views/folder.py @@ -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(