Fix some VM-snapshot & VDI ACLs resolution.

This commit is contained in:
Julien Fontanet 2015-10-28 16:51:09 +01:00
parent 548355fce6
commit cc3e4369ed

View File

@ -72,7 +72,7 @@ const checkAuthorizationByTypes = {
}
// Check authorization for each of the connected VMs.
for (const {$VM: vm} of vdi.$VBDs) {
for (const { VM: vm } of vdi.$VBDs) {
if (checkAuthorization(vm, permission)) {
return true
}
@ -85,7 +85,7 @@ const checkAuthorizationByTypes = {
VM: or(checkSelf, checkMember('$container')),
'VM-snapshot': checkMember('snapshot_of'),
'VM-snapshot': checkMember('$snapshot_of'),
'VM-template': authorized
}