Set default protectedFields and remove previous filter logic
This commit is contained in:
@@ -62,6 +62,7 @@ const emptyCLPS = Object.freeze({
|
||||
update: {},
|
||||
delete: {},
|
||||
addField: {},
|
||||
protectedFields: {},
|
||||
});
|
||||
|
||||
const defaultCLPS = Object.freeze({
|
||||
@@ -71,6 +72,7 @@ const defaultCLPS = Object.freeze({
|
||||
update: { '*': true },
|
||||
delete: { '*': true },
|
||||
addField: { '*': true },
|
||||
protectedFields: { '*': [] },
|
||||
});
|
||||
|
||||
function mongoSchemaToParseSchema(mongoSchema) {
|
||||
|
||||
Reference in New Issue
Block a user