public function __construct() { parent::__construct(); if (!hasPermission('access_help_page')) { redirect(BASE_URL . 'dashboard/'); } }
public function __construct() { parent::__construct(); $this->_auth = new \tinyPHP\Classes\Libraries\Cookies(); if ($this->_auth->isUserLoggedIn()) { redirect(BASE_URL . 'dashboard/'); } }
public function __construct() { parent::__construct(); $this->_auth = new \tinyPHP\Classes\Libraries\Cookies(); if (!hasPermission('manage_roles')) { redirect(BASE_URL . 'dashboard/'); } }