mirror of https://github.com/apache/cloudstack.git
Fix findBugs bug.
This commit is contained in:
parent
c3a4a01781
commit
7821da66cc
|
|
@ -2320,7 +2320,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
|
|||
domainIdRecursiveListProject.second(false); // isRecursive is only valid if only domainId is passed.
|
||||
}
|
||||
|
||||
if (permittedDomains.isEmpty() && permittedAccounts.isEmpty() & permittedResources.isEmpty()) {
|
||||
if (permittedDomains.isEmpty() && permittedAccounts.isEmpty() && permittedResources.isEmpty()) {
|
||||
// if at this point, all permitted arrays are empty, that means that caller cannot see anything, we put -1 in permittedAccounts
|
||||
// to distinguish this case from the case that caller can see everything
|
||||
permittedAccounts.add(-1L);
|
||||
|
|
|
|||
Loading…
Reference in New Issue