Browse Source

chore(api): lint

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

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

@ -1,298 +1,299 @@
export default {
owner: {
exclude: {
pluginList:true,
pluginTest:true,
pluginRead:true,
pluginUpdate:true,
isPluginActive:true,
pluginList: true,
pluginTest: true,
pluginRead: true,
pluginUpdate: true,
isPluginActive: true,
},
},
creator: {
exclude: {
pluginList:true,
pluginTest:true,
pluginRead:true,
pluginUpdate:true,
isPluginActive:true,
pluginList: true,
pluginTest: true,
pluginRead: true,
pluginUpdate: true,
isPluginActive: true,
},
},
guest: {},
editor:{ include: {
hideAllColumns: true,
showAllColumns: true,
auditRowUpdate: true,
passwordChange: true,
// new permissions
// project
projectGet: true,
projectList: true,
projectCost: true,
//table
tableList: true,
tableGet: true,
editor: {
include: {
hideAllColumns: true,
showAllColumns: true,
auditRowUpdate: true,
passwordChange: true,
// new permissions
// project
projectGet: true,
projectList: true,
projectCost: true,
//table
tableList: true,
tableGet: true,
// data
dataList: true,
dataUpdate: true,
dataDelete: true,
dataInsert: true,
dataRead: true,
dataExist: true,
dataFindOne: true,
dataGroupBy: true,
commentsCount: true,
exportCsv: true,
exportExcel: true,
// data
dataList: true,
dataUpdate: true,
dataDelete: true,
dataInsert: true,
dataRead: true,
dataExist: true,
dataFindOne: true,
dataGroupBy: true,
commentsCount: true,
exportCsv: true,
exportExcel: true,
viewList: true,
columnList: true,
viewColumnUpdate: true,
viewList: true,
columnList: true,
viewColumnUpdate: true,
sortList: true,
sortCreate: true,
sortUpdate: true,
sortDelete: true,
sortList: true,
sortCreate: true,
sortUpdate: true,
sortDelete: true,
filterList: true,
filterCreate: true,
filterUpdate: true,
filterDelete: true,
filterGet: true,
filterChildrenRead: true,
filterList: true,
filterCreate: true,
filterUpdate: true,
filterDelete: true,
filterGet: true,
filterChildrenRead: true,
mmList: true,
hmList: true,
mmExcludedList: true,
hmExcludedList: true,
btExcludedList: true,
commentList: true,
commentRow: true,
mmList: true,
hmList: true,
mmExcludedList: true,
hmExcludedList: true,
btExcludedList: true,
commentList: true,
commentRow: true,
formViewGet: true,
projectInfoGet: true,
gridColumnUpdate: true,
galleryViewGet: true,
formViewGet: true,
projectInfoGet: true,
gridColumnUpdate: true,
galleryViewGet: true,
// old
xcTableAndViewList: true,
xcAuditCreate: true,
xcAttachmentUpload: true,
xcVirtualTableList: true,
rolesGet: true,
tableXcModelGet: true,
xcRelationsGet: true,
xcModelsList: true,
xcViewModelsList: true,
xcProcedureModelsList: true,
xcFunctionModelsList: true,
xcTableModelsList: true,
xcCronList: true,
xcRelationList: true,
tableMetaCreate: true,
tableMetaDelete: true,
tableMetaRecreate: true,
viewMetaCreate: true,
viewMetaDelete: true,
viewMetaRecreate: true,
procedureMetaCreate: true,
procedureMetaDelete: true,
procedureMetaRecreate: true,
functionMetaCreate: true,
functionMetaDelete: true,
functionMetaRecreate: true,
// old
xcTableAndViewList: true,
xcAuditCreate: true,
xcAttachmentUpload: true,
xcVirtualTableList: true,
rolesGet: true,
tableXcModelGet: true,
xcRelationsGet: true,
xcModelsList: true,
xcViewModelsList: true,
xcProcedureModelsList: true,
xcFunctionModelsList: true,
xcTableModelsList: true,
xcCronList: true,
xcRelationList: true,
tableMetaCreate: true,
tableMetaDelete: true,
tableMetaRecreate: true,
viewMetaCreate: true,
viewMetaDelete: true,
viewMetaRecreate: true,
procedureMetaCreate: true,
procedureMetaDelete: true,
procedureMetaRecreate: true,
functionMetaCreate: true,
functionMetaDelete: true,
functionMetaRecreate: true,
tableCreateStatement: true,
tableInsertStatement: true,
tableUpdateStatement: true,
tableSelectStatement: true,
tableDeleteStatement: true,
tableCreateStatement: true,
tableInsertStatement: true,
tableUpdateStatement: true,
tableSelectStatement: true,
tableDeleteStatement: true,
functionList: true,
sequenceList: true,
procedureList: true,
triggerList: true,
relationList: true,
relationListAll: true,
indexList: true,
list: true,
viewRead: true,
functionRead: true,
procedureRead: true,
functionList: true,
sequenceList: true,
procedureList: true,
triggerList: true,
relationList: true,
relationListAll: true,
indexList: true,
list: true,
viewRead: true,
functionRead: true,
procedureRead: true,
getKnexDataTypes: true,
DB_PROJECT_OPEN_BY_WEB: true,
PROJECT_READ_BY_WEB: true,
projectGenerateBackend: true,
projectGenerateBackendGql: true,
projectGetTsPolicyPath: true,
projectGetPolicyPath: true,
projectGetGqlPolicyPath: true,
handleApiCall: true,
executeRawQuery: true,
projectHasDb: true,
testConnection: true,
projectChangeEnv: true,
getKnexDataTypes: true,
DB_PROJECT_OPEN_BY_WEB: true,
PROJECT_READ_BY_WEB: true,
projectGenerateBackend: true,
projectGenerateBackendGql: true,
projectGetTsPolicyPath: true,
projectGetPolicyPath: true,
projectGetGqlPolicyPath: true,
handleApiCall: true,
executeRawQuery: true,
projectHasDb: true,
testConnection: true,
projectChangeEnv: true,
xcRoutesPolicyAllGet: true,
grpcProtoDownloadZip: true,
xcRoutesPolicyAllGet: true,
grpcProtoDownloadZip: true,
xcModelRowAuditAndCommentList: true,
xcAuditCommentInsert: true,
xcAuditModelCommentsCount: true,
xcExportAsCsv: true,
xcModelRowAuditAndCommentList: true,
xcAuditCommentInsert: true,
xcAuditModelCommentsCount: true,
xcExportAsCsv: true,
bulkDataInsert: true,
bulkDataUpdate: true,
bulkDataUpdateAll: true,
bulkDataDelete: true,
bulkDataDeleteAll: true,
relationDataRemove: true,
relationDataAdd: true,
dataCount: true,
upload: true,
uploadViaURL: true,
},
bulkDataInsert: true,
bulkDataUpdate: true,
bulkDataUpdateAll: true,
bulkDataDelete: true,
bulkDataDeleteAll: true,
relationDataRemove: true,
relationDataAdd: true,
dataCount: true,
upload: true,
uploadViaURL: true,
},
},
commenter: {
include: {
formViewGet: true,
passwordChange: true,
// project
projectGet: true,
exportCsv: true,
exportExcel: true,
formViewGet: true,
passwordChange: true,
// project
projectGet: true,
exportCsv: true,
exportExcel: true,
//table
tableGet: true,
// sort & filter
sortList: true,
viewList: true,
columnList: true,
//table
tableGet: true,
// sort & filter
sortList: true,
viewList: true,
columnList: true,
mmList: true,
hmList: true,
commentList: true,
commentRow: true,
projectInfoGet: true,
mmList: true,
hmList: true,
commentList: true,
commentRow: true,
projectInfoGet: true,
// data
dataList: true,
dataRead: true,
dataExist: true,
dataFindOne: true,
dataGroupBy: true,
commentsCount: true,
// data
dataList: true,
dataRead: true,
dataExist: true,
dataFindOne: true,
dataGroupBy: true,
commentsCount: true,
galleryViewGet: true,
galleryViewGet: true,
xcTableAndViewList: true,
xcVirtualTableList: true,
projectList: true,
projectCost: true,
PROJECT_READ_BY_WEB: true,
xcTableAndViewList: true,
xcVirtualTableList: true,
projectList: true,
projectCost: true,
PROJECT_READ_BY_WEB: true,
tableXcModelGet: true,
xcRelationList: true,
tableList: true,
functionList: true,
sequenceList: true,
procedureList: true,
triggerList: true,
relationList: true,
relationListAll: true,
indexList: true,
list: true,
tableXcModelGet: true,
xcRelationList: true,
tableList: true,
functionList: true,
sequenceList: true,
procedureList: true,
triggerList: true,
relationList: true,
relationListAll: true,
indexList: true,
list: true,
xcModelRowAuditAndCommentList: true,
xcAuditCommentInsert: true,
xcAuditModelCommentsCount: true,
xcExportAsCsv: true,
dataCount: true,
},
xcModelRowAuditAndCommentList: true,
xcAuditCommentInsert: true,
xcAuditModelCommentsCount: true,
xcExportAsCsv: true,
dataCount: true,
},
},
viewer: {
include: {
formViewGet: true,
passwordChange: true,
// project
projectGet: true,
//table
tableGet: true,
// data
dataList: true,
dataRead: true,
dataExist: true,
dataFindOne: true,
dataGroupBy: true,
commentsCount: true,
exportCsv: true,
exportExcel: true,
formViewGet: true,
passwordChange: true,
// project
projectGet: true,
//table
tableGet: true,
// data
dataList: true,
dataRead: true,
dataExist: true,
dataFindOne: true,
dataGroupBy: true,
commentsCount: true,
exportCsv: true,
exportExcel: true,
// sort & filter
sortList: true,
filterList: true,
projectInfoGet: true,
// sort & filter
sortList: true,
filterList: true,
projectInfoGet: true,
galleryViewGet: true,
galleryViewGet: true,
mmList: true,
hmList: true,
commentList: true,
commentRow: false,
mmList: true,
hmList: true,
commentList: true,
commentRow: false,
xcTableAndViewList: true,
xcVirtualTableList: true,
projectList: true,
projectCost: true,
PROJECT_READ_BY_WEB: true,
xcTableAndViewList: true,
xcVirtualTableList: true,
projectList: true,
projectCost: true,
PROJECT_READ_BY_WEB: true,
tableXcModelGet: true,
xcRelationList: true,
tableList: true,
viewList: true,
functionList: true,
sequenceList: true,
procedureList: true,
columnList: true,
triggerList: true,
relationList: true,
relationListAll: true,
indexList: true,
list: true,
xcExportAsCsv: true,
dataCount: true
},
tableXcModelGet: true,
xcRelationList: true,
tableList: true,
viewList: true,
functionList: true,
sequenceList: true,
procedureList: true,
columnList: true,
triggerList: true,
relationList: true,
relationListAll: true,
indexList: true,
list: true,
xcExportAsCsv: true,
dataCount: true,
},
},
user_new: {
include: {
passwordChange: true,
projectList: true,
}
},
},
super: '*',
user: {
include : {
upload: true,
uploadViaURL: true,
passwordChange: true,
pluginList: true,
pluginRead: true,
pluginTest: true,
isPluginActive: true,
pluginUpdate: true,
projectCreate: true,
projectList: true,
projectCost: true,
handleAxiosCall: true,
testConnection: true,
projectCreateByWeb: true,
projectCreateByWebWithXCDB: true,
xcPluginRead: true,
xcMetaTablesImportZipToLocalFsAndDb: true,
xcMetaTablesExportDbToZip: true,
auditRowUpdate: true,
},
include: {
upload: true,
uploadViaURL: true,
passwordChange: true,
pluginList: true,
pluginRead: true,
pluginTest: true,
isPluginActive: true,
pluginUpdate: true,
projectCreate: true,
projectList: true,
projectCost: true,
handleAxiosCall: true,
testConnection: true,
projectCreateByWeb: true,
projectCreateByWebWithXCDB: true,
xcPluginRead: true,
xcMetaTablesImportZipToLocalFsAndDb: true,
xcMetaTablesExportDbToZip: true,
auditRowUpdate: true,
},
},
};

Loading…
Cancel
Save