sureshanaparti commented on a change in pull request #4717:
URL: https://github.com/apache/cloudstack/pull/4717#discussion_r595742398
##########
File path: server/src/main/java/com/cloud/usage/UsageServiceImpl.java
##########
@@ -201,7 +202,8 @@ public boolean generateUsageRecords(GenerateUsageRecordsCmd
cmd) {
}
boolean isAdmin = false;
Review comment:
```suggestion
boolean isAdmin = _accountService.isRootAdmin(caller.getId());
```
Similarly as the other vars for domain admin / user.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]