mirror of https://github.com/apache/cloudstack.git
Fix for: doAccessChecks fail due to the wrong ClassCast toArray()
This commit is contained in:
parent
4367d1406b
commit
43ce83202d
|
|
@ -263,8 +263,8 @@ public class ParamProcessWorker implements DispatchWorker {
|
|||
}
|
||||
|
||||
if (!entitiesToOperate.isEmpty()) {
|
||||
_accountMgr.checkAccess(owner, AccessType.OperateEntry, apiName,
|
||||
(ControlledEntity[]) entitiesToOperate.toArray());
|
||||
_accountMgr.checkAccess(caller, AccessType.OperateEntry, false, apiName,
|
||||
entitiesToOperate.toArray(new ControlledEntity[entitiesToOperate.size()]));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue