MCPcopy
hub / github.com/parse-community/parse-server / addWriteACL

Function addWriteACL

src/Controllers/DatabaseController.js:78–83  ·  view source on GitHub ↗
(query, acl)

Source from the content-addressed store, hash-verified

76];
77
78function addWriteACL(query, acl) {
79 const newQuery = _.cloneDeep(query);
80 //Can't be any existing '_wperm' query, we don't allow client queries on that, no need to $and
81 newQuery._wperm = { $in: [null, ...acl] };
82 return newQuery;
83}
84
85function addReadACL(query, acl) {
86 const newQuery = _.cloneDeep(query);

Callers 3

updateMethod · 0.85
destroyMethod · 0.85
findMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected