cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhtyd <...@git.apache.org>
Subject [GitHub] cloudstack pull request #1763: CLOUDSTACK-9594: API "list templates template...
Date Thu, 08 Dec 2016 09:47:16 GMT
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.
---

Mime
View raw message