Remove extra flood checks from BasePage.

This commit is contained in:
Darko
2015-09-17 11:50:32 +02:00
parent 36c1cb4240
commit 32f980d215
+1 -6
View File
@@ -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);