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.unshift({
name: 'Team & Auth ',
key: 'roles',
_nodes: {
env: '_noco',
type: 'roles'
}
})
if (rootGetters['users/GtrIsAdmin']) {
tabs.unshift({
name: 'Team & Auth ',
key: 'roles',
_nodes: {
env: '_noco',
type: 'roles'
}
})
}
}
commit('list', tabs)
},

Loading…
Cancel
Save