You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by rhtyd <gi...@git.apache.org> on 2016/12/08 09:47:16 UTC

[GitHub] cloudstack pull request #1763: CLOUDSTACK-9594: API "list templates template...

Github user rhtyd commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1763#discussion_r91479045
  
    --- Diff: server/src/com/cloud/api/query/QueryManagerImpl.java ---
    @@ -3054,9 +3054,9 @@ private boolean isPermissible(Long accountDomainId, Long offeringDomainId) {
     
             boolean listAll = false;
             if (templateFilter != null && templateFilter == TemplateFilter.all) {
    -            if (caller.getType() != Account.ACCOUNT_TYPE_ADMIN) {
    +            if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) {
    --- End diff --
    
    @sudhansu7 what is the user is a domain admin or resource admin, the `all` filter was only allowed for admin?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---