bug 9729 : Permission change - allow admin to use anybody's private template.

status 9729: resolved fixed
This commit is contained in:
nit 2011-05-30 12:34:33 +05:30
parent d006fd141c
commit 024bd039da

View File

@ -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;
}