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

(cherry picked from commit 19b72d6cf5)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Saksham Srivastava 2014-06-02 15:51:06 +05:30 committed by Rohit Yadav
parent 4f0fc5cb20
commit 6e20058fb7
1 changed files with 1 additions and 1 deletions

View File

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