chore: format
This commit is contained in:
1 parent
1f49ebf431
commit
6fce92aa12
139 files changed
+92569
-3249
No files matched your search
@@ -191,11 +191,7 @@ async def get_image_base64_from_file_id(id: str, user=None) -> Optional[str]:
|
||||
# Owner, admin, and explicit read-grant holders are allowed.
|
||||
if user is None:
|
||||
return None
|
||||
if (
|
||||
file.user_id != user.id
|
||||
and user.role != 'admin'
|
||||
and not await has_access_to_file(file.id, 'read', user)
|
||||
):
|
||||
if file.user_id != user.id and user.role != 'admin' and not await has_access_to_file(file.id, 'read', user):
|
||||
return None
|
||||
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user