public function hasAny(array $permissions, bool $need_affiliation = true): bool
    {

        foreach ($permissions as $permission)
            if ($this->has($permission, $need_affiliation))
                return true;

        return false;
    }
public function hasAny(array $permissions, bool $need_affiliation = true): bool
    {

        foreach ($permissions as $permission)
            if ($this->has($permission, $need_affiliation))
                return true;

        return false;
    }
public function hasAny ( array $ permissions , bool $ need_affiliation = true ) : bool { foreach ( $ permissions as $ permission ) if ( $ this -> has ( $ permission , $ need_affiliation ) ) return true ; return false ; }
Checks if the user has any of the required
permissions.

@param array      $permissions
@param bool|false $need_affiliation

@return bool
@throws \Seat\Web\Exceptions\BouncerException
Checks if the user has any of the required permissions .