Skip to content

Commit

Permalink
Remove key manager restrictions in applicationsApplicationIdKeysKeyTy…
Browse files Browse the repository at this point in the history
…pePut
  • Loading branch information
Kirishikesan committed Oct 20, 2023
1 parent f8d34ac commit f75015b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1026,11 +1026,6 @@ public Response applicationsApplicationIdKeysKeyTypePut(String applicationId, St
String username = RestApiCommonUtil.getLoggedInUsername();
try {
APIConsumer apiConsumer = APIManagerFactory.getInstance().getAPIConsumer(username);
if (!(apiConsumer.isKeyManagerByNameAllowedForUser(body.getKeyManager(),
MultitenantUtils.getTenantDomain(username), username))) {
throw new APIManagementException("Key Manager is permission restricted",
ExceptionCodes.KEY_MANAGER_RESTRICTED_FOR_USER);
}
Application application = apiConsumer.getApplicationByUUID(applicationId);
if (application != null) {
if (RestAPIStoreUtils.isUserOwnerOfApplication(application)) {
Expand Down

0 comments on commit f75015b

Please sign in to comment.