@Override
    public List<DeveloperApiPlanSummaryDto> getApiVersionPlans(String orgId, String apiId, String apiVersion) {
        securityContext.checkPermissionsOrDiscoverability(
                EntityType.API,
                orgId,
                apiId,
                apiVersion,
                Set.of(PermissionType.apiView)
        );
        return portalService.getApiVersionPlans(orgId, apiId, apiVersion)
                       .stream()
                       .filter(ap -> securityContext.hasPermission(PermissionType.planView, orgId) || permittedDiscoverability(ap.getDiscoverability()))
                       .collect(Collectors.toList());
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/DeveloperPortalResourceImpl.java