Skip to content

Commit 024bd03

Browse files
bug 9729 : Permission change - allow admin to use anybody's private template.
status 9729: resolved fixed
1 parent d006fd1 commit 024bd03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/acl/DomainChecker.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public boolean checkAccess(Account caller, ControlledEntity entity) throws Permi
8282
// validate that the template is usable by the account
8383
if (!template.isPublicTemplate()) {
8484
Account owner = _accountDao.findById(template.getAccountId());
85-
if (BaseCmd.isAdmin(owner.getType()) || (owner.getId() == caller.getId())) {
85+
if (BaseCmd.isAdmin(caller.getType()) || (owner.getId() == caller.getId())) {
8686
return true;
8787
}
8888

0 commit comments

Comments
 (0)