We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef69e83 commit 4591e23Copy full SHA for 4591e23
server/src/main/java/org/apache/cloudstack/acl/ApiKeyPairManagerImpl.java
@@ -96,9 +96,5 @@ public void validateCallingUserHasAccessToDesiredUser(Long userId) {
96
throw new InvalidParameterValueException(String.format("Could not perform operation because calling user has less permissions " +
97
"than the informed user [%s].", desiredUser.getId()));
98
}
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
- }
103
104
0 commit comments