Skip to content

Commit 8845aae

Browse files
sanjaytripathidevdeep
authored andcommitted
CLOUDSTACK-4075: User unable to archive events
1 parent ea5be13 commit 8845aae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/server/ManagementServerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ public boolean archiveEvents(ArchiveEventsCmd cmd) {
859859
boolean result =true;
860860
List<Long> permittedAccountIds = new ArrayList<Long>();
861861

862-
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL && caller.getType() == Account.ACCOUNT_TYPE_PROJECT) {
862+
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL || caller.getType() == Account.ACCOUNT_TYPE_PROJECT) {
863863
permittedAccountIds.add(caller.getId());
864864
} else {
865865
DomainVO domain = _domainDao.findById(caller.getDomainId());

0 commit comments

Comments
 (0)