Skip to content

Commit b77cbea

Browse files
sanjaytripathiyadvr
authored andcommitted
CLOUDSTACK-7964: listAccounts API is not listing correct value of resource limits.
(cherry picked from commit d475b62) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent bc4dca7 commit b77cbea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public AccountResponse newAccountResponse(ResponseView view, AccountJoinVO accou
7575
accountResponse.setBytesReceived(account.getBytesReceived());
7676
accountResponse.setBytesSent(account.getBytesSent());
7777

78-
boolean fullView = (view == ResponseView.Full);
78+
boolean fullView = (view == ResponseView.Full && _acctMgr.isRootAdmin(account.getId()));
7979
setResourceLimits(account, fullView, accountResponse);
8080

8181
//get resource limits for projects

0 commit comments

Comments
 (0)