mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8093:Not able to list shared templates by passing id.
This commit is contained in:
parent
68b9ba4515
commit
d304409c98
|
|
@ -3123,8 +3123,7 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
|
|||
|
||||
// if template is not public, perform permission check here
|
||||
if (!template.isPublicTemplate() && caller.getType() != Account.ACCOUNT_TYPE_ADMIN) {
|
||||
Account owner = _accountMgr.getAccount(template.getAccountId());
|
||||
_accountMgr.checkAccess(caller, null, true, owner);
|
||||
_accountMgr.checkAccess(caller, null, false, template);
|
||||
}
|
||||
|
||||
// if templateId is specified, then we will just use the id to
|
||||
|
|
|
|||
Loading…
Reference in New Issue