diff --git a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java index f89cc1504cf5..44608d888c6c 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java +++ b/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIConsumerImpl.java @@ -867,7 +867,7 @@ public SubscriptionResponse addSubscription(ApiTypeWrapper apiTypeWrapper, Strin WorkflowResponse workflowResponse = null; String tenantAwareUsername = MultitenantUtils.getTenantAwareUsername(userId); - checkSubscriptionAllowed(apiTypeWrapper); + checkSubscriptionAllowed(apiTypeWrapper, apiTypeWrapper.getTier()); int subscriptionId; if (APIConstants.PUBLISHED.equals(state) || APIConstants.PROTOTYPED.equals(state)) { subscriptionId = apiMgtDAO.addSubscription(apiTypeWrapper, application, @@ -1058,7 +1058,7 @@ public SubscriptionResponse updateSubscription(ApiTypeWrapper apiTypeWrapper, St apiContext = api.getContext(); apiOrgId = api.getOrganization(); } - checkSubscriptionAllowed(apiTypeWrapper); + checkSubscriptionAllowed(apiTypeWrapper, requestedThrottlingPolicy); WorkflowResponse workflowResponse = null; int subscriptionId; if (APIConstants.PUBLISHED.equals(state) || APIConstants.PROTOTYPED.equals(state)) { @@ -4484,7 +4484,7 @@ private Map getHostWithSchemeMappingForLabelWS(List