fix 500 error

master
Aevann 2024-07-24 18:11:40 +03:00
parent 4fbf34e119
commit 97da8f6484
1 changed files with 1 additions and 1 deletions

View File

@ -1006,7 +1006,7 @@ class User(Base):
if not self.is_private: return True
if not user: return False
if self.id == user.id: return True
if SITE_NAME == 'rDrama' and self.id in {CARP_ID, 1376} and request.values.get('page', 0) > 1: return False
if SITE_NAME == 'rDrama' and self.id in {CARP_ID, 1376} and int(request.values.get('page', 0)) > 1: return False
return user.admin_level >= PERMS['VIEW_PRIVATE_PROFILES'] or user.eye
@property