hsato03 commented on code in PR #7853:
URL: https://github.com/apache/cloudstack/pull/7853#discussion_r1293951567


##########
plugins/acl/static-role-based/src/main/java/org/apache/cloudstack/acl/StaticRoleBasedAPIAccessChecker.java:
##########
@@ -107,6 +107,10 @@ public boolean checkAccess(User user, String commandName) 
throws PermissionDenie
 
     @Override
     public boolean checkAccess(Account account, String commandName) {
+        if (isEnabled()) {
+            return true;
+        }

Review Comment:
   @DaanHoogland I don't think so. Actually this `isEnabled` method checks if 
`DynamicRoleBasedAPIAccessChecker` is enabled. Returning true here is just 
passing the check responsibility to another class.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to