You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sa...@apache.org on 2014/07/17 10:59:00 UTC

git commit: updated refs/heads/master to d382be9

Repository: cloudstack
Updated Branches:
  refs/heads/master 186606a0b -> d382be957


CLOUDSTACK-6508: impossible to list projects from API with domainid set


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d382be95
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d382be95
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d382be95

Branch: refs/heads/master
Commit: d382be9578d49fd839952d06944f6312946f0472
Parents: 186606a
Author: Saksham Srivastava <sa...@citrix.com>
Authored: Mon Jun 2 15:51:06 2014 +0530
Committer: Saksham Srivastava <sa...@citrix.com>
Committed: Thu Jul 17 14:26:25 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/api/query/QueryManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d382be95/server/src/com/cloud/api/query/QueryManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/query/QueryManagerImpl.java b/server/src/com/cloud/api/query/QueryManagerImpl.java
index b09bb0f..39eabd1 100644
--- a/server/src/com/cloud/api/query/QueryManagerImpl.java
+++ b/server/src/com/cloud/api/query/QueryManagerImpl.java
@@ -1298,7 +1298,7 @@ public class QueryManagerImpl extends ManagerBase implements QueryService {
                 throw new PermissionDeniedException("Can't list account " + accountName + " projects; unauthorized");
             }
 
-            if (domainId != null && domainId.equals(caller.getDomainId())) {
+            if (domainId != null && !domainId.equals(caller.getDomainId())) {
                 throw new PermissionDeniedException("Can't list domain id= " + domainId + " projects; unauthorized");
             }