fix 500 error
parent
b57f4d61f9
commit
917a933db0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue