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

Loading…
Cancel
Save