mirror of https://github.com/apache/cloudstack.git
ACl on affinity group
This commit is contained in:
parent
9de7a68e92
commit
fc248cb99c
|
|
@ -2289,6 +2289,9 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Use
|
|||
AffinityGroupVO ag = _affinityGroupDao.findById(affinityGroupId);
|
||||
if (ag == null) {
|
||||
throw new InvalidParameterValueException("Unable to find affinity group by id " + affinityGroupId);
|
||||
} else {
|
||||
// verify permissions
|
||||
_accountMgr.checkAccess(caller, null, true, owner, ag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue