From 9fb251f5b61eb3df95c14cea3c93188d9fa3fe8a Mon Sep 17 00:00:00 2001 From: Darko Date: Mon, 8 Jun 2015 10:37:49 +0200 Subject: [PATCH] Remove chack for disabled users. --- newznab/controllers/BasePage.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/newznab/controllers/BasePage.php b/newznab/controllers/BasePage.php index df34dd2e3..4702170d5 100644 --- a/newznab/controllers/BasePage.php +++ b/newznab/controllers/BasePage.php @@ -102,16 +102,6 @@ class BasePage if ($this->users->isLoggedIn()) { $this->userdata = $this->users->getById($this->users->currentUserId()); - - // - // user can still be logged in but have been disabled by admin, so if they are, log them off - // - if ($this->userdata["role"] == Users::ROLE_DISABLED) - { - $this->users->logout(); - $this->show403(); - } - $this->userdata["categoryexclusions"] = $this->users->getCategoryExclusion($this->users->currentUserId()); // Change the theme to user's selected theme if they selected one, else use the admin one.