mirror of https://github.com/apache/cloudstack.git
api: ACL annotation and checkAccess removal refactor for StopVMCmd
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
96b9164e4b
commit
39b829bffe
|
|
@ -39,6 +39,7 @@ public class StopVMCmd extends BaseAsyncCmd {
|
|||
// ////////////// API parameters /////////////////////
|
||||
// ///////////////////////////////////////////////////
|
||||
|
||||
@ACL
|
||||
@Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType=UserVmResponse.class,
|
||||
required = true, description = "The ID of the virtual machine")
|
||||
private Long id;
|
||||
|
|
|
|||
|
|
@ -2768,7 +2768,6 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
throw new InvalidParameterValueException("unable to find a virtual machine with id " + vmId);
|
||||
}
|
||||
|
||||
_accountMgr.checkAccess(caller, null, true, vm);
|
||||
UserVO user = _userDao.findById(userId);
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue