Arik Hadas has uploaded a new change for review.

Change subject: core: set templates by data center as user query
......................................................................

core: set templates by data center as user query

With template versions, we need to query all the templates in the data
center when we create new template in order to display them if the
template is about to be created as sub-template (because the user needs
to select the template that would serve as base-template). Thus, this
patch changes the query that gets all the templates in the data center
to user-query so that we would be able to create sub-template from the
user portal as well

Change-Id: I66820f53abbc33d1986a7aa6fad314b37e2f7e67
Signed-off-by: Arik Hadas <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/80/23380/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
index a488a7b..8ddadf8 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
@@ -100,7 +100,7 @@
     GetVmTemplate(VdcQueryAuthType.User),
     GetAllVmTemplates(VdcQueryAuthType.User),
     GetVmTemplatesDisks(VdcQueryAuthType.User),
-    GetVmTemplatesByStoragePoolId,
+    GetVmTemplatesByStoragePoolId(VdcQueryAuthType.User),
     GetVmTemplatesByImageGuid,
     GetSystemPermissions,
 


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

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

Reply via email to