You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by nv...@apache.org on 2022/04/20 14:00:28 UTC
[cloudstack] branch main updated: UI: hide Virtual Routers tab for domain admins (#6289)
This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 56fb7ac1288 UI: hide Virtual Routers tab for domain admins (#6289)
56fb7ac1288 is described below
commit 56fb7ac128840e2283033efea2f106f6b1acc201
Author: Wei Zhou <we...@apache.org>
AuthorDate: Wed Apr 20 16:00:20 2022 +0200
UI: hide Virtual Routers tab for domain admins (#6289)
---
ui/src/config/section/network.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js
index e0d631f0619..c25c451c5e4 100644
--- a/ui/src/config/section/network.js
+++ b/ui/src/config/section/network.js
@@ -66,7 +66,7 @@ export default {
}, {
name: 'virtual.routers',
component: shallowRef(defineAsyncComponent(() => import('@/views/network/RoutersTab.vue'))),
- show: (record) => { return (record.type === 'Isolated' || record.type === 'Shared') && 'listRouters' in store.getters.apis }
+ show: (record) => { return (record.type === 'Isolated' || record.type === 'Shared') && 'listRouters' in store.getters.apis && isAdmin() }
}, {
name: 'guest.ip.range',
component: shallowRef(defineAsyncComponent(() => import('@/views/network/GuestIpRanges.vue'))),