From b77cbea0f35b2bcdbbd41f742032207c4aefbf1b Mon Sep 17 00:00:00 2001 From: Sanjay Tripathi Date: Mon, 24 Nov 2014 13:37:18 +0530 Subject: [PATCH] CLOUDSTACK-7964: listAccounts API is not listing correct value of resource limits. (cherry picked from commit d475b62838878677531d6daab667757baf63604e) Signed-off-by: Rohit Yadav --- server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java b/server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java index 31d5a2c5e82..fadaed52874 100755 --- a/server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java +++ b/server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java @@ -75,7 +75,7 @@ public class AccountJoinDaoImpl extends GenericDaoBase impl accountResponse.setBytesReceived(account.getBytesReceived()); accountResponse.setBytesSent(account.getBytesSent()); - boolean fullView = (view == ResponseView.Full); + boolean fullView = (view == ResponseView.Full && _acctMgr.isRootAdmin(account.getId())); setResourceLimits(account, fullView, accountResponse); //get resource limits for projects