pull/225/head
Aevann 2024-03-21 04:34:11 +02:00
parent cc2168beba
commit f7734df858
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ def can_see(user, obj):
if obj.name == 'chudrama': return bool(user) and user.can_see_chudrama
if obj.name == 'countryclub': return bool(user) and user.can_see_countryclub
if obj.name == 'highrollerclub': return bool(user) and user.can_see_highrollerclub
#DELETE_ME_PLS
if obj.name == 'fascism': return bool(user)
elif obj.__class__.__name__ == 'User':
return not obj.shadowbanned or (user and user.id == obj.id) or (user and user.admin_level >= PERMS['USER_SHADOWBAN'])
return True