Fixed a bug in constructing search parameters with accountName passed.

This commit is contained in:
Min Chen 2014-02-19 11:35:00 -08:00
parent 26e92af62d
commit 13e25d2aae
1 changed files with 2 additions and 2 deletions

View File

@ -2295,8 +2295,8 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
List<Long> grantedAccounts = qs.getAuthorizedAccounts(caller, action);
List<Long> grantedResources = qs.getAuthorizedResources(caller, action);
if (domainId != null) {
// specific domain is specified
if (permittedAccounts.isEmpty() && domainId != null) {
// specific domain and no account is specified
if (grantedDomains.contains(domainId)) {
permittedDomains.add(domainId);
} else {