Skip to content

Commit 4591e23

Browse files
author
klaus.freitas.scclouds
committed
fixing marvin test
1 parent ef69e83 commit 4591e23

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/main/java/org/apache/cloudstack/acl/ApiKeyPairManagerImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,5 @@ public void validateCallingUserHasAccessToDesiredUser(Long userId) {
9696
throw new InvalidParameterValueException(String.format("Could not perform operation because calling user has less permissions " +
9797
"than the informed user [%s].", desiredUser.getId()));
9898
}
99-
User callerUser = CallContext.current().getCallingUser();
100-
if (!accountManager.isAdmin(callerUser.getAccountId()) && callerUser.getId() != userId) {
101-
throw new PermissionDeniedException("Only admins can operate on API keys owned by other users");
102-
}
10399
}
104100
}

0 commit comments

Comments
 (0)