Pagekit\User\Model\User::isAuthenticated PHP Method

isAuthenticated() public method

Check if the user has the authenticated role.
public isAuthenticated ( ) : boolean
return boolean
    public function isAuthenticated()
    {
        return $this->hasRole(Role::ROLE_AUTHENTICATED);
    }

Usage Example

Esempio n. 1
0
 /**
  * Proxy isAuthenticated
  * @return bool
  */
 public function isAuthenticated()
 {
     return $this->user->isAuthenticated();
 }