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. 18
      packages/nc-gui/store/tabs.js

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

@ -230,14 +230,16 @@ export const actions = {
tabs.push(item) tabs.push(item)
} }
tabs.unshift({ if (rootGetters['users/GtrIsAdmin']) {
name: 'Team & Auth ', tabs.unshift({
key: 'roles', name: 'Team & Auth ',
_nodes: { key: 'roles',
env: '_noco', _nodes: {
type: 'roles' env: '_noco',
} type: 'roles'
}) }
})
}
} }
commit('list', tabs) commit('list', tabs)
}, },

Loading…
Cancel
Save