mirror of https://github.com/apache/cloudstack.git
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:
parent
4f0fc5cb20
commit
6e20058fb7
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue