function __construct() { parent::__construct(); if ($this->config->item('ssl')) { force_ssl(); } UsuarioBackendSesion::checkLogin(); }
function __construct() { parent::__construct(); UsuarioBackendSesion::checkLogin(); if (!UsuarioBackendSesion::usuario()->tieneRol('mantenedor')) { echo 'No tiene permisos'; exit; } }
function __construct() { parent::__construct(); if ($this->config->item('ssl')) { force_ssl(); } UsuarioBackendSesion::checkLogin(); if (!UsuarioBackendSesion::usuario()->tieneRol('mantenedor')) { echo 'No tiene permisos'; exit; } }
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; } }