public static function accesoView($level) { if (!Session::get('autenticado')) { return false; } if (Session::getLevel($level) > Session::getLevel(Session::get('level'))) { return false; } return true; }
public static function accessViewLevel($level) { if (!Session::get('authenticated')) { return false; } if (Session::getLevel($leve) > Session::getLevel(Session::get('level'))) { return false; } return true; }
public static function accesoView($level) { //a esta funcion se le envia el nivel MINIMO de usuario en la parte de las VISTAS. if (!Session::get('autenticado')) { return false; } if (Session::getLevel($level) > Session::getLevel(Session::get('level'))) { return false; } return true; }
public static function accesoView($level) { if (!Session::getWithTime('auth')) { return false; } if (Session::getLevel($level) > Session::getLevel(Session::getWithTime('level'))) { return false; } return true; }