This commit is contained in:
Timothy Jaeryang Baek
2026-02-13 13:29:22 -06:00
parent b4c3f54f96
commit df6e38039f
11 changed files with 34 additions and 54 deletions

View File

@@ -356,11 +356,9 @@ async def update_note_access_by_id(
)
):
form_data.access_grants = [
g for g in form_data.access_grants
if not (
g.get("principal_type") == "user"
and g.get("principal_id") == "*"
)
grant
for grant in form_data.access_grants
if not (grant.get("principal_type") == "user" and grant.get("principal_id") == "*")
]
AccessGrants.set_access_grants("note", id, form_data.access_grants, db=db)