chore: format
This commit is contained in:
@@ -567,7 +567,10 @@ async def update_knowledge_access_by_id(
|
||||
form_data.access_grants = [
|
||||
grant
|
||||
for grant in form_data.access_grants
|
||||
if not (grant.get("principal_type") == "user" and grant.get("principal_id") == "*")
|
||||
if not (
|
||||
grant.get("principal_type") == "user"
|
||||
and grant.get("principal_id") == "*"
|
||||
)
|
||||
]
|
||||
|
||||
AccessGrants.set_access_grants("knowledge", id, form_data.access_grants, db=db)
|
||||
|
||||
Reference in New Issue
Block a user