From 62414238caac2d11badbb5251fbabf10a6e08133 Mon Sep 17 00:00:00 2001 From: IFGGit <162738418+IFGGit@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:52:07 +0200 Subject: [PATCH] fix(nc-gui): Hide Rename, Delete, Add record buttons when user doesn't have necessary permissions (#7871) * fix(nc-gui): Remove tableRename, tableDelete from org level role permissions For hiding Rename and Delete buttons in table context menu. * fix(nc-gui): Hide Add record button when user doesn't have dataInsert permission --- .../nc-gui/components/dashboard/TreeView/ProjectNode.vue | 2 +- packages/nc-gui/components/smartsheet/Kanban.vue | 6 +++++- packages/nc-gui/lib/acl.ts | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue index b173089da6..80d9bf86c2 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue @@ -766,7 +766,7 @@ const projectDelete = () => { - +
{{ $t('general.delete') }} diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 943f9c1c39..f1e210669c 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -513,7 +513,10 @@ const getRowId = (row: RowType) => {
- +
{