Browse Source

fix: try to load userList only if allowed(based on role)

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/7173/head
Pranav C 1 year ago committed by Ramesh Mane
parent
commit
484390b373
  1. 2
      packages/nc-gui/components/project/View.vue

2
packages/nc-gui/components/project/View.vue

@ -35,7 +35,7 @@ const baseSettingsState = ref('')
const userCount = isEeUI ? workspaceUserCount : baseUserCount const userCount = isEeUI ? workspaceUserCount : baseUserCount
const updateBaseUserCount = async () => { const updateBaseUserCount = async () => {
if (!baseUserCount) return if (!baseUserCount || !isUIAllowed('newUser')) return
try { try {
const { totalRows } = await getProjectUsers({ const { totalRows } = await getProjectUsers({

Loading…
Cancel
Save