Example #1
0
 /**
  * @return mixed|void
  * @throws \ForbiddenException
  */
 public function exec()
 {
     if (UsersLogin::isLogined()) {
         $this->userSession = UsersLogin::getCurrentSession();
         return parent::exec();
     } else {
         throw new ForbiddenException('Need active session');
     }
 }