Gilad Chaplik has posted comments on this change.
Change subject: webdmin: Restrict destination host parameter for administrator
only
......................................................................
Patch Set 4: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
Line 865: ActionGroup.CHANGE_VM_CUSTOM_PROPERTIES));
Line 866: }
Line 867:
Line 868: // check, if user can override default target host for VM
Line 869: if (getVm() != null) {
to be on the safe side, I would add the permission, also if getVm() == null
(same as last action group, lines 862-866)
Line 870: final Guid destinationVdsId =
getParameters().getDestinationVdsId();
Line 871: if (destinationVdsId != null &&
!destinationVdsId.equals(getVm().getDedicatedVmForVds())) {
Line 872: permissionList.add(new
PermissionSubject(getParameters().getVmId(),
Line 873: VdcObjectType.VM,
--
To view, visit http://gerrit.ovirt.org/11303
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I5294854d24b235f2c50fa7f3d4e7472cf7598b53
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Libor Spevak <[email protected]>
Gerrit-Reviewer: Einav Cohen <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Libor Spevak <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches