1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #5404: Checked vm permissions in all cases (#497)

This commit is contained in:
juanmont 2017-09-28 16:59:30 +02:00 committed by Ruben S. Montero
parent 3cbda46ec1
commit 1166485a7f

View File

@ -2661,14 +2661,10 @@ void VirtualMachineDiskSnapshotCreate::request_execute(
}
img_att_quota = RequestAttributes(img_perms.uid, img_perms.gid, att);
}
if ( vm_ds_quota )
}
if ( vm_authorization(id, 0, 0, att, 0, 0, 0, auth_op) == false )
{
if ( vm_authorization(id, 0, 0, att, 0, 0, 0, auth_op) == false )
{
return;
}
return;
}
vm_att_quota = RequestAttributes(vm_perms.uid, vm_perms.gid, att);