CLOUDSTACK-7964: listAccounts API is not listing correct value of resource limits.

(cherry picked from commit d475b62838878677531d6daab667757baf63604e)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Sanjay Tripathi 2014-11-24 13:37:18 +05:30 committed by Rohit Yadav
parent bc4dca71c8
commit b77cbea0f3

View File

@ -75,7 +75,7 @@ public class AccountJoinDaoImpl extends GenericDaoBase<AccountJoinVO, Long> impl
accountResponse.setBytesReceived(account.getBytesReceived()); accountResponse.setBytesReceived(account.getBytesReceived());
accountResponse.setBytesSent(account.getBytesSent()); accountResponse.setBytesSent(account.getBytesSent());
boolean fullView = (view == ResponseView.Full); boolean fullView = (view == ResponseView.Full && _acctMgr.isRootAdmin(account.getId()));
setResourceLimits(account, fullView, accountResponse); setResourceLimits(account, fullView, accountResponse);
//get resource limits for projects //get resource limits for projects