Skip to content

Commit 7b96aa9

Browse files
committed
Remove VR's service offering id and name from non-admin users
1 parent 2e0df54 commit 7b96aa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/com/cloud/api/ApiResponseHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ public NetworkOfferingResponse createNetworkOfferingResponse(NetworkOffering off
23362336
}
23372337
if (so != null) {
23382338
ServiceOffering soffering = ApiDBUtils.findServiceOfferingById(so);
2339-
if (soffering != null) {
2339+
if (soffering != null && _accountMgr.isRootAdmin(CallContext.current().getCallingAccountId())) {
23402340
response.setServiceOfferingId(soffering.getUuid());
23412341
response.setServiceOfferingName(soffering.getName());
23422342
}

0 commit comments

Comments
 (0)