Skip to content

Commit fc248cb

Browse files
author
Prachi Damle
committed
ACl on affinity group
1 parent 9de7a68 commit fc248cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎server/src/com/cloud/vm/UserVmManagerImpl.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,9 @@ protected UserVm createVirtualMachine(DataCenter zone, ServiceOffering serviceOf
22892289
AffinityGroupVO ag = _affinityGroupDao.findById(affinityGroupId);
22902290
if (ag == null) {
22912291
throw new InvalidParameterValueException("Unable to find affinity group by id " + affinityGroupId);
2292+
} else {
2293+
// verify permissions
2294+
_accountMgr.checkAccess(caller, null, true, owner, ag);
22922295
}
22932296
}
22942297
}

0 commit comments

Comments
 (0)