From 7623a445862dabfd96b415ccc9b70f148fffe946 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 11 Dec 2023 11:51:42 +0530 Subject: [PATCH] fix: try to load userList only if allowed(based on role) Signed-off-by: Pranav C --- packages/nc-gui/components/project/View.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/View.vue b/packages/nc-gui/components/project/View.vue index fbf34fc78a..0571b7e67c 100644 --- a/packages/nc-gui/components/project/View.vue +++ b/packages/nc-gui/components/project/View.vue @@ -35,7 +35,7 @@ const baseSettingsState = ref('') const userCount = isEeUI ? workspaceUserCount : baseUserCount const updateBaseUserCount = async () => { - if (!baseUserCount) return + if (!baseUserCount || !isUIAllowed('newUser')) return try { const { totalRows } = await getProjectUsers({