-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Move acl adding into parse server #1601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move acl adding into parse server #1601
Conversation
Current coverage is
|
function addWriteACL(mongoWhere, acl) { | ||
return {'$and': [mongoWhere, {"_wperm" : { "$in" : [null, ...acl]}}]}; | ||
} | ||
|
||
function addReadACL(mongoWhere, acl) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be removed too as you copied it into DBController
@drew-gross updated the pull request. |
|
||
var mongodb = require('mongodb'); | ||
var Parse = require('parse/node').Parse; | ||
|
||
var SchemaController = require('../Controllers/SchemaController'); | ||
const deepcopy = require('deepcopy'); | ||
|
||
function addWriteACL(query, acl) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name is somehow misleading, as we do a deepCopy and return a new object, but I believe that's ok.
DB adapters shouldn't know what an ACL is.