Martin Betak has uploaded a new change for review.

Change subject: backend: Lessen permissions needed for VmPool creation
......................................................................

backend: Lessen permissions needed for VmPool creation

Changed AddVmPoolWithVmsCommand to require only CREATE_VM permission
for the template instead of CREATE_VM_POOL to make it consistent with
user's ability to create VMs.

Change-Id: Ib28ae681a91d7b11455283041062779733e61f2b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1058290
Signed-off-by: Martin Betak <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/54/27254/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
index a32ac34..3b9522c 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmPoolWithVmsCommand.java
@@ -13,6 +13,7 @@
 import org.ovirt.engine.core.common.AuditLogType;
 import org.ovirt.engine.core.common.VdcObjectType;
 import org.ovirt.engine.core.common.action.AddVmPoolWithVmsParameters;
+import org.ovirt.engine.core.common.businessentities.ActionGroup;
 import org.ovirt.engine.core.common.businessentities.VmPool;
 import org.ovirt.engine.core.common.errors.VdcBllMessages;
 import org.ovirt.engine.core.common.validation.group.CreateEntity;
@@ -79,7 +80,7 @@
                 VdcObjectType.VdsGroups,
                 getActionType().getActionGroup()));
         permissionList.add(new PermissionSubject(getVmTemplateId(), 
VdcObjectType.VmTemplate,
-                getActionType().getActionGroup()));
+                                                 ActionGroup.CREATE_VM));
 
         return permissionList;
     }


-- 
To view, visit http://gerrit.ovirt.org/27254
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib28ae681a91d7b11455283041062779733e61f2b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4.1
Gerrit-Owner: Martin Betak <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to