This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e619dd  network: Hiding vlan uri for non admin users (#661)
6e619dd is described below

commit 6e619dd4a8387dacd529adacd87f8c8224f75c66
Author: davidjumani <[email protected]>
AuthorDate: Wed Sep 2 14:04:31 2020 +0530

    network: Hiding vlan uri for non admin users (#661)
    
    Fixes #659
---
 src/views/network/NicsTable.vue | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/views/network/NicsTable.vue b/src/views/network/NicsTable.vue
index 484114b..f3b3181 100644
--- a/src/views/network/NicsTable.vue
+++ b/src/views/network/NicsTable.vue
@@ -50,12 +50,14 @@
         <a-descriptions-item :label="$t('label.ip6cidr')" 
v-if="record.ip6cidr">
           {{ record.ip6cidr }}
         </a-descriptions-item>
-        <a-descriptions-item :label="$t('label.broadcasturi')" 
v-if="record.broadcasturi">
-          {{ record.broadcasturi }}
-        </a-descriptions-item>
-        <a-descriptions-item :label="$t('label.isolationuri')" 
v-if="record.isolationuri">
-          {{ record.isolationuri }}
-        </a-descriptions-item>
+        <template v-if="['Admin', 
'DomainAdmin'].includes($store.getters.userInfo.roletype)">
+          <a-descriptions-item :label="$t('label.broadcasturi')" 
v-if="record.broadcasturi">
+            {{ record.broadcasturi }}
+          </a-descriptions-item>
+          <a-descriptions-item :label="$t('label.isolationuri')" 
v-if="record.isolationuri">
+            {{ record.isolationuri }}
+          </a-descriptions-item>
+        </template>
       </a-descriptions>
     </p>
     <template slot="networkname" slot-scope="text, item">

Reply via email to