sureshanaparti commented on code in PR #9569:
URL: https://github.com/apache/cloudstack/pull/9569#discussion_r1732116984


##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -5341,6 +5341,13 @@ protected void updateVncPasswordIfItHasChanged(String 
originalVncPassword, Strin
     public void finalizeExpunge(VirtualMachine vm) {
     }
 
+    private void checkForceStopVmPermission(Account callingAccount) {
+        if (!AllowUserForceStopVm.valueIn(callingAccount.getId())) {
+            logger.error(String.format("Parameter [%s] can only be passed by 
Admin accounts or when the allow.user.force.stop.vm key is true.", 
ApiConstants.FORCED));

Review Comment:
   ```suggestion
               logger.error(String.format("Parameter [%s] can only be passed by 
Admin accounts or when the allow.user.force.stop.vm config is true for the 
account.", ApiConstants.FORCED));
   ```



-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to