VDI: fix fallback on VM.

This commit is contained in:
Julien Fontanet 2016-04-08 10:46:57 +02:00
parent bf586d0837
commit defd42f74e

View File

@ -66,8 +66,8 @@ const checkAuthorizationByTypes = {
}
// Check authorization for each of the connected VMs.
for (const { VM: vm } of vdi.$VBDs) {
if (checkAuthorization(vm, permission)) {
for (const vbdId of vdi.$VBDs) {
if (checkAuthorization(getObject(vbdId).VM, permission)) {
return true
}
}