mirror of https://github.com/apache/cloudstack.git
bug 9729 : Permission change - allow admin to use anybody's private template.
status 9729: resolved fixed
This commit is contained in:
parent
d006fd141c
commit
024bd039da
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue