fix 500 error

pull/226/head
Aevann 2024-04-05 09:45:25 +02:00
parent b57f4d61f9
commit 917a933db0
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def can_see(user, obj):
return False
else:
if obj.pinned == "Admin Note":
return user.admin_level >= PERMS['ADMIN_NOTES']
return user and user.admin_level >= PERMS['ADMIN_NOTES']
if hasattr(obj, 'is_blocking') and obj.is_blocking and not request.path.endswith(f'/{obj.id}'):
return False
if obj.parent_post: