From f0a156d8d74a4f4eb891c53f4a9250fe9c1f7ed3 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Tue, 3 Oct 2023 18:04:12 +0000 Subject: [PATCH] fix(nc-gui): Fixed issue with create data source btn issue --- packages/nc-gui/components/project/AllTables.vue | 2 +- packages/nc-gui/lib/acl.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/AllTables.vue b/packages/nc-gui/components/project/AllTables.vue index 5b44080f6a..4affed1129 100644 --- a/packages/nc-gui/components/project/AllTables.vue +++ b/packages/nc-gui/components/project/AllTables.vue @@ -9,7 +9,7 @@ const { openedProject } = storeToRefs(useBases()) const isNewBaseModalOpen = ref(false) -const isDataSourceLimitReached = computed(() => Number(openedProject.value?.bases?.length) > 1) +const isDataSourceLimitReached = computed(() => Number(openedProject.value?.sources?.length) > 1) const { isUIAllowed } = useRoles() diff --git a/packages/nc-gui/lib/acl.ts b/packages/nc-gui/lib/acl.ts index 05e6e73a03..29db4185e6 100644 --- a/packages/nc-gui/lib/acl.ts +++ b/packages/nc-gui/lib/acl.ts @@ -70,6 +70,7 @@ const rolePermissions = { csvImport: true, baseRename: true, baseDuplicate: true, + sourceCreate: true, }, }, [ProjectRoles.EDITOR]: {