Browse Source

feat(api): update roles name in acl

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4134/head
Pranav C 2 years ago
parent
commit
d27a9ccb4c
  1. 12
      packages/nocodb/src/lib/utils/projectAcl.ts

12
packages/nocodb/src/lib/utils/projectAcl.ts

@ -1,3 +1,5 @@
import { OrgUserRoles } from '../../enums/OrgUserRoles'
export default { export default {
owner: { owner: {
exclude: { exclude: {
@ -187,7 +189,7 @@ export default {
dataGroupBy: true, dataGroupBy: true,
commentsCount: true, commentsCount: true,
galleryViewGet: true, alleryViewGet: true,
kanbanViewGet: true, kanbanViewGet: true,
groupedDataList: true, groupedDataList: true,
@ -271,14 +273,14 @@ export default {
dataCount: true, dataCount: true,
}, },
}, },
user_new: { [OrgUserRoles.VIEWER]: {
include: { include: {
passwordChange: true, passwordChange: true,
projectList: true, projectList: true,
}, },
}, },
super: '*', [OrgUserRoles.SUPER]: '*',
user: { [OrgUserRoles.CREATOR]: {
include: { include: {
upload: true, upload: true,
uploadViaURL: true, uploadViaURL: true,
@ -301,4 +303,4 @@ export default {
auditRowUpdate: true, auditRowUpdate: true,
}, },
}, },
}; }

Loading…
Cancel
Save