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