CLOUDSTACK-4075: User unable to archive events

This commit is contained in:
Sanjay Tripathi 2013-08-05 18:13:52 +05:30 committed by Devdeep Singh
parent ea5be13761
commit 8845aae0bc
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
boolean result =true;
List<Long> permittedAccountIds = new ArrayList<Long>();
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL && caller.getType() == Account.ACCOUNT_TYPE_PROJECT) {
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL || caller.getType() == Account.ACCOUNT_TYPE_PROJECT) {
permittedAccountIds.add(caller.getId());
} else {
DomainVO domain = _domainDao.findById(caller.getDomainId());