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 Dec 15, 2024
1 parent ef6d6ca commit bff9dc9
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 bff9dc9

Please sign in to comment.