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

Function addReadACL

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

Source from the content-addressed store, hash-verified

83}
84
85function addReadACL(query, acl) {
86 const newQuery = _.cloneDeep(query);
87 //Can't be any existing '_rperm' query, we don't allow client queries on that, no need to $and
88 newQuery._rperm = { $in: [null, '*', ...acl] };
89 return newQuery;
90}
91
92// Transforms a REST API formatted ACL object to our two-field mongo format.
93const transformObjectACL = ({ ACL, ...result }) => {

Callers 1

findMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected