Ejemplo n.º 1
0
 protected function _checkPrivileges($class = '', $method = '')
 {
     $userInfo = $this->phpsession->get('userInfo', array(), 'admin');
     if (empty($userInfo)) {
         if (in_array(strtolower($method), array('index'))) {
             parent::_checkPrivileges($class, $method);
         }
     } else {
         if (false == empty($userInfo) && in_array($this->router->fetch_method(), array('printlogin'))) {
             redirect(site_url('admin/manager/printLogin'));
         }
     }
 }