DaanHoogland commented on a change in pull request #5745:
URL: https://github.com/apache/cloudstack/pull/5745#discussion_r761119587



##########
File path: ui/src/config/section/network.js
##########
@@ -29,7 +29,13 @@ export default {
       icon: 'apartment',
       permission: ['listNetworks'],
       resourceType: 'Network',
-      columns: ['name', 'state', 'type', 'vpcname', 'cidr', 'ip6cidr', 
'broadcasturi', 'domain', 'account', 'zonename'],
+      columns: () => {
+        var fields = ['name', 'state', 'type', 'vpcname', 'cidr', 'ip6cidr', 
'domain', 'account', 'zonename']
+        if (['Admin'].includes(store.getters.userInfo.roletype)) {
+          fields.push('broadcasturi')
+        }
+        return fields
+      },

Review comment:
       this construct should also be applied to the `details:` field below 
should it?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to