mirror of
https://github.com/apache/cloudstack
synced 2026-08-02 05:26:35 +00:00
merge bug fixed
This commit is contained in:
parent
773dea9bae
commit
11a25afa0d
@ -5604,7 +5604,7 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
|
||||
}
|
||||
|
||||
private void checkForceStopVmPermission(Account callingAccount) {
|
||||
callingAccountId = callingAccount == null ? null : callingAccount.getId();
|
||||
Long callingAccountId = callingAccount == null ? null : callingAccount.getId();
|
||||
if (!AllowUserForceStopVm.valueIn(callingAccountId)) {
|
||||
logger.error("Parameter [{}] can only be passed by Admin accounts or when the allow.user.force.stop.vm config is true for the account.", ApiConstants.FORCED);
|
||||
throw new PermissionDeniedException("Account does not have the permission to force stop the vm.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user