GabrielBrascher commented on a change in pull request #3715: break session only 
on illegal origin
URL: https://github.com/apache/cloudstack/pull/3715#discussion_r351082198
 
 

 ##########
 File path: server/src/main/java/com/cloud/api/ApiServer.java
 ##########
 @@ -843,11 +844,7 @@ public boolean verifyRequest(final Map<String, Object[]> 
requestParameters, fina
             if (userId != null) {
                 final User user = ApiDBUtils.findUserById(userId);
 
-                if (!commandAvailable(remoteAddress, commandName, user)) {
-                    return false;
-                }
-
-                return true;
+                return commandAvailable(remoteAddress, commandName, user);
 
 Review comment:
   :+1: 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to