Exemple #1
0
 /**
  * @return bool|\Model\UserSession
  */
 public function isGuest()
 {
     $status = \Auth\Base::Check();
     if ($status == false) {
         return true;
     } else {
         $data = User::model()->findByPk($status->iduser);
         \Registry::setCurrentUser($data);
         return false;
     }
 }