diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index 66cdd389b0..2fcbef2389 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -173,7 +173,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState( const mightHaveMoreAudits = ref(false) const loadAudits = async (_rowId?: string, showLoading = true) => { - if (!isUIAllowed('auditListRow') || (!row.value && !_rowId)) return + if (!isUIAllowed('recordAuditList') || (!row.value && !_rowId)) return const rowId = _rowId ?? extractPkFromRow(row.value.row, meta.value.columns as ColumnType[]) diff --git a/packages/nc-gui/lib/acl.ts b/packages/nc-gui/lib/acl.ts index c8a94e956b..92d9f51953 100644 --- a/packages/nc-gui/lib/acl.ts +++ b/packages/nc-gui/lib/acl.ts @@ -121,7 +121,7 @@ const rolePermissions = { commentList: true, commentCount: true, - auditListRow: true, + recordAuditList: true, newUser: true, }, }, diff --git a/packages/nocodb/src/utils/acl.ts b/packages/nocodb/src/utils/acl.ts index a392e65a51..eb3c286ed9 100644 --- a/packages/nocodb/src/utils/acl.ts +++ b/packages/nocodb/src/utils/acl.ts @@ -114,7 +114,7 @@ const permissionScopes = { 'commentUpdate', 'hideAllColumns', 'showAllColumns', - 'auditListRow', + 'recordAuditList', 'dataUpdate', 'dataDelete', 'dataInsert', @@ -249,7 +249,7 @@ const rolePermissions: jobList: true, commentList: true, commentsCount: true, - auditListRow: true, + recordAuditList: true, userInvite: true, @@ -646,7 +646,7 @@ const permissionDescriptions: Record = { commentUpdate: 'update comments', hideAllColumns: 'hide all columns', showAllColumns: 'show all columns', - auditListRow: 'view audit log for a row', + recordAuditList: 'view audit log for a row', dataUpdate: 'update data', dataDelete: 'delete data', dataInsert: 'insert new data',