Skip to content

Commit 56fb7ac

Browse files
UI: hide Virtual Routers tab for domain admins (#6289)
1 parent 25f92c5 commit 56fb7ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/config/section/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
}, {
6767
name: 'virtual.routers',
6868
component: shallowRef(defineAsyncComponent(() => import('@/views/network/RoutersTab.vue'))),
69-
show: (record) => { return (record.type === 'Isolated' || record.type === 'Shared') && 'listRouters' in store.getters.apis }
69+
show: (record) => { return (record.type === 'Isolated' || record.type === 'Shared') && 'listRouters' in store.getters.apis && isAdmin() }
7070
}, {
7171
name: 'guest.ip.range',
7272
component: shallowRef(defineAsyncComponent(() => import('@/views/network/GuestIpRanges.vue'))),

0 commit comments

Comments
 (0)