cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saks...@apache.org
Subject git commit: updated refs/heads/master to d382be9
Date Thu, 17 Jul 2014 08:59:00 GMT
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 <saksham.srivastava@citrix.com>
Authored: Mon Jun 2 15:51:06 2014 +0530
Committer: Saksham Srivastava <saksham.srivastava@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");
             }
 


Mime
View raw message