From 2a0b44f12a35c675bd802e0dd8b0609ca8195a24 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 24 Jun 2024 08:28:52 +0000 Subject: [PATCH] fix(nc-gui): display audit logs in modal for user how have only base creator access --- .../nc-gui/components/dlg/ProjectAudit.vue | 5 +- .../nc-gui/components/workspace/AuditLogs.vue | 466 ++++++++++-------- packages/nc-gui/components/workspace/View.vue | 4 +- packages/nc-gui/lib/acl.ts | 1 + 4 files changed, 255 insertions(+), 221 deletions(-) diff --git a/packages/nc-gui/components/dlg/ProjectAudit.vue b/packages/nc-gui/components/dlg/ProjectAudit.vue index daea9f04e5..4e98cf9a82 100644 --- a/packages/nc-gui/components/dlg/ProjectAudit.vue +++ b/packages/nc-gui/components/dlg/ProjectAudit.vue @@ -1,5 +1,6 @@ - +
+ +
diff --git a/packages/nc-gui/lib/acl.ts b/packages/nc-gui/lib/acl.ts index 6755e87024..95c47a1e67 100644 --- a/packages/nc-gui/lib/acl.ts +++ b/packages/nc-gui/lib/acl.ts @@ -84,6 +84,7 @@ const rolePermissions = { baseRename: true, baseDuplicate: true, sourceCreate: true, + baseAuditList: true, }, }, [ProjectRoles.EDITOR]: {