Skip to content

Commit 6e20058

Browse files
Sakshamsyadvr
authored andcommitted
CLOUDSTACK-6508: impossible to list projects from API with domainid set
(cherry picked from commit 19b72d6) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 4f0fc5c commit 6e20058

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/api/query/QueryManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ private Pair<List<ProjectJoinVO>, Integer> listProjectsInternal(ListProjectsCmd
12981298
throw new PermissionDeniedException("Can't list account " + accountName + " projects; unauthorized");
12991299
}
13001300

1301-
if (domainId != null && domainId.equals(caller.getDomainId())) {
1301+
if (domainId != null && !domainId.equals(caller.getDomainId())) {
13021302
throw new PermissionDeniedException("Can't list domain id= " + domainId + " projects; unauthorized");
13031303
}
13041304

0 commit comments

Comments
 (0)