DaanHoogland commented on code in PR #12779:
URL: https://github.com/apache/cloudstack/pull/12779#discussion_r2927150741
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -5598,7 +5524,7 @@ public void finalizeExpunge(VirtualMachine vm) {
}
private void checkForceStopVmPermission(Account callingAccount) {
- if (!AllowUserForceStopVm.valueIn(callingAccount.getId())) {
+ if (callingAccount == null ||
!AllowUserForceStopVm.valueIn(callingAccount.getId())) {
Review Comment:
Do you mean
```suggestion
if ((callingAccount == null && !AllowUserForceStopVm.value()) ||
!AllowUserForceStopVm.valueIn(callingAccount.getId())) {
```
?
--
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]