Browse Source

Merge pull request #7179 from nocodb/fix/7174-nested-api-permissions

fix: Nested data apis(v2) permission issue
pull/7186/head
Raju Udava 1 year ago committed by GitHub
parent
commit
759fdcbac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/nocodb/src/utils/acl.ts

8
packages/nocodb/src/utils/acl.ts

@ -117,6 +117,9 @@ const permissionScopes = {
'relationDataRemove',
'relationDataAdd',
'duplicateColumn',
'nestedDataList',
'nestedDataLink',
'nestedDataUnlink',
// Base API Tokens
'baseApiTokenList',
@ -179,6 +182,8 @@ const rolePermissions:
list: true,
dataCount: true,
swaggerJson: true,
nestedDataList: true,
},
},
[ProjectRoles.COMMENTER]: {
@ -217,6 +222,9 @@ const rolePermissions:
bulkDataDeleteAll: true,
relationDataRemove: true,
relationDataAdd: true,
nestedDataLink: true,
nestedDataUnlink: true,
// TODO add ACL with base scope
// upload: true,
// uploadViaURL: true,

Loading…
Cancel
Save