cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [3/4] git commit: updated refs/heads/4.4 to 22f3834
Date Thu, 21 Aug 2014 13:58:55 GMT
CLOUDSTACK-6508: impossible to list projects from API with domainid set

(cherry picked from commit 19b72d6cf57665fc3935fdd7f7e9dad9117f0616)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


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

Branch: refs/heads/4.4
Commit: 6e20058fb7fd482b4bbcd30f3c78aaa59c6c09d3
Parents: 4f0fc5c
Author: Saksham Srivastava <saksham.srivastava@citrix.com>
Authored: Mon Jun 2 15:51:06 2014 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Thu Aug 21 03:17:32 2014 +0200

----------------------------------------------------------------------
 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/6e20058f/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 1182be5..18a155f 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