Jarves\Model\User::hasRole PHP Method

hasRole() public method

public hasRole ( string $role ) : boolean
$role string
return boolean
    public function hasRole($role)
    {
        return in_array($role, $this->getGroupRoles());
    }