Browse Source

fix: initially open 'Team & Auth' tab only for admin roles

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
23164bd740
  1. 2
      packages/nc-gui/store/tabs.js

2
packages/nc-gui/store/tabs.js

@ -230,6 +230,7 @@ export const actions = {
tabs.push(item) tabs.push(item)
} }
if (rootGetters['users/GtrIsAdmin']) {
tabs.unshift({ tabs.unshift({
name: 'Team & Auth ', name: 'Team & Auth ',
key: 'roles', key: 'roles',
@ -239,6 +240,7 @@ export const actions = {
} }
}) })
} }
}
commit('list', tabs) commit('list', tabs)
}, },

Loading…
Cancel
Save