From 32f980d2150239fb04ad5c606aa4a0018b193c3e Mon Sep 17 00:00:00 2001 From: Darko Date: Thu, 17 Sep 2015 11:50:32 +0200 Subject: [PATCH] Remove extra flood checks from BasePage. --- newznab/controllers/BasePage.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/newznab/controllers/BasePage.php b/newznab/controllers/BasePage.php index 4c3d0061b..85553ae93 100644 --- a/newznab/controllers/BasePage.php +++ b/newznab/controllers/BasePage.php @@ -96,8 +96,7 @@ class BasePage $this->page = (isset($_GET['page'])) ? $_GET['page'] : 'content'; $this->users = new Users(['Settings' => $this->settings]); - if ($this->users->isLoggedIn()) - { + if ($this->users->isLoggedIn()) { $this->userdata = $this->users->getById($this->users->currentUserId()); $this->userdata["categoryexclusions"] = $this->users->getCategoryExclusion($this->users->currentUserId()); @@ -146,16 +145,12 @@ class BasePage $this->settings->setSetting(['adbrowse', '']); $this->settings->setSetting(['addetail', '']); } - - $this->floodCheck($this->userdata["role"]); } else { $this->smarty->assign('isadmin', 'false'); $this->smarty->assign('ismod', 'false'); $this->smarty->assign('loggedin', 'false'); - $this->floodCheck(); - } $this->smarty->assign('site', $this->settings);