From 024bd039dabd2dd90add381e17466e9d25a9bc10 Mon Sep 17 00:00:00 2001 From: nit Date: Mon, 30 May 2011 12:34:33 +0530 Subject: [PATCH] bug 9729 : Permission change - allow admin to use anybody's private template. status 9729: resolved fixed --- server/src/com/cloud/acl/DomainChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/acl/DomainChecker.java b/server/src/com/cloud/acl/DomainChecker.java index f6b39c4659b..b0978fdf76b 100755 --- a/server/src/com/cloud/acl/DomainChecker.java +++ b/server/src/com/cloud/acl/DomainChecker.java @@ -82,7 +82,7 @@ public class DomainChecker extends AdapterBase implements SecurityChecker { // validate that the template is usable by the account if (!template.isPublicTemplate()) { Account owner = _accountDao.findById(template.getAccountId()); - if (BaseCmd.isAdmin(owner.getType()) || (owner.getId() == caller.getId())) { + if (BaseCmd.isAdmin(caller.getType()) || (owner.getId() == caller.getId())) { return true; }