Пример #1
0
 function __construct()
 {
     parent::__construct();
     if ($this->config->item('ssl')) {
         force_ssl();
     }
     UsuarioBackendSesion::checkLogin();
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     UsuarioBackendSesion::checkLogin();
     if (!UsuarioBackendSesion::usuario()->tieneRol('mantenedor')) {
         echo 'No tiene permisos';
         exit;
     }
 }
Пример #3
0
 function __construct()
 {
     parent::__construct();
     if ($this->config->item('ssl')) {
         force_ssl();
     }
     UsuarioBackendSesion::checkLogin();
     if (!UsuarioBackendSesion::usuario()->tieneRol('mantenedor')) {
         echo 'No tiene permisos';
         exit;
     }
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     if ($this->config->item('ssl')) {
         force_ssl();
     }
     $this->user = UsuarioBackendSesion::usuario();
     UsuarioBackendSesion::checkLogin();
     if (!$this->user->tieneRol(array('mantenedor', 'jefaturaweb'))) {
         echo 'No tiene permisos';
         return;
     }
 }