Skip to content

Commit

Permalink
Remove api policy enabled check
Browse files Browse the repository at this point in the history
  • Loading branch information
RusJaI committed Oct 14, 2024
1 parent 942cefe commit a4870b4
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5315,17 +5315,16 @@ public API addPolicyTypeFieldToApi(API api, String tenantDomain)
}
api.setUriTemplates(uriTemplates);

if (isAPILevelPolicySupportEnabled) {
List<OperationPolicy> apiPolicies = api.getApiPolicies();
if (apiPolicies != null && !apiPolicies.isEmpty()) {
for (OperationPolicy policy : apiPolicies) {
String policyType = getPolicyType(policy, api.getUuid(),
tenantDomain);
policy.setPolicyType(policyType);
}
List<OperationPolicy> apiPolicies = api.getApiPolicies();
if (apiPolicies != null && !apiPolicies.isEmpty()) {
for (OperationPolicy policy : apiPolicies) {
String policyType = getPolicyType(policy, api.getUuid(),
tenantDomain);
policy.setPolicyType(policyType);
}
api.setApiPolicies(apiPolicies);
}
api.setApiPolicies(apiPolicies);

return api;
}

Expand Down

0 comments on commit a4870b4

Please sign in to comment.