Pagekit\User\Model\AccessModelTrait::hasRole PHP Method

hasRole() public method

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