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

This commit is contained in:
Saksham Srivastava 2014-06-02 15:51:06 +05:30 committed by Sebastien Goasguen
parent 720315b8d1
commit 19b72d6cf5
1 changed files with 1 additions and 1 deletions

View File

@ -1307,7 +1307,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");
}