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