From 97da8f64849ce26a48e93d430ff92c171d5f059c Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 24 Jul 2024 18:11:40 +0300 Subject: [PATCH] fix 500 error --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 58843037e..24057a5d1 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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