mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
server: export full response view for zones response when caller is root admin (#3989)
The listZonesMetrics does not return same keys are listZones as the default response view is restricted. This fixes that by ensuring that for root admin full response view is used. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
e9b652a5b7
commit
2e3390f06e
@ -2881,7 +2881,7 @@ public class QueryManagerImpl extends MutualExclusiveIdsManagerBase implements Q
|
||||
ListResponse<ZoneResponse> response = new ListResponse<ZoneResponse>();
|
||||
|
||||
ResponseView respView = ResponseView.Restricted;
|
||||
if (cmd instanceof ListZonesCmdByAdmin) {
|
||||
if (cmd instanceof ListZonesCmdByAdmin || CallContext.current().getCallingAccount().getType() == Account.ACCOUNT_TYPE_ADMIN) {
|
||||
respView = ResponseView.Full;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user