Pagekit\User\Model\AccessModelTrait::hasRole PHP 메소드

hasRole() 공개 메소드

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