src/Access/BasicAccessHandler.php
protected function checkRole($allowed)
    {
        if (!is_array($allowed)) {
            $allowed = explode('|', $allowed);
        }

        return in_array($this->getCurrentRole(), $allowed);
    }
protected function checkRole($allowed)
    {
        if (!is_array($allowed)) {
            $allowed = explode('|', $allowed);
        }

        return in_array($this->getCurrentRole(), $allowed);
    }
protected function checkRole ( $ allowed ) { if ( ! is_array ( $ allowed ) ) { $ allowed = explode ( '|' , $ allowed ) ; } return in_array ( $ this -> getCurrentRole ( ) , $ allowed ) ; }
Check if a user has at least one of the allowed roles.

@param  $allowed
@return bool
Check if a user has at least one of the allowed roles .