diff --git a/packages/nocodb/src/lib/utils/projectAcl.ts b/packages/nocodb/src/lib/utils/projectAcl.ts index b10a856bb5..7bae7d2b03 100644 --- a/packages/nocodb/src/lib/utils/projectAcl.ts +++ b/packages/nocodb/src/lib/utils/projectAcl.ts @@ -1,3 +1,5 @@ +import { OrgUserRoles } from '../../enums/OrgUserRoles' + export default { owner: { exclude: { @@ -187,7 +189,7 @@ export default { dataGroupBy: true, commentsCount: true, - galleryViewGet: true, + alleryViewGet: true, kanbanViewGet: true, groupedDataList: true, @@ -271,14 +273,14 @@ export default { dataCount: true, }, }, - user_new: { + [OrgUserRoles.VIEWER]: { include: { passwordChange: true, projectList: true, }, }, - super: '*', - user: { + [OrgUserRoles.SUPER]: '*', + [OrgUserRoles.CREATOR]: { include: { upload: true, uploadViaURL: true, @@ -301,4 +303,4 @@ export default { auditRowUpdate: true, }, }, -}; +}