Closed
Description
I used the following code on server side for saving object:
app.post('/',requireUser, function(req, res) {
var post = new Post();
post.set("Category",req.body.Category)
var acl = new Parse.ACL();
acl.setPublicReadAccess(true);
acl.setRoleWriteAccess("admin", true);
acl.setWriteAccess(req.user, true);
post.setACL(acl);
post.save(null,{sessionToken:req.user.sessionToken});
});
And this is the data saved in MongoDB
{
"_rperm": [
"*"
],
"_wperm": [
"role:admin",
"SPtdQePtm2"
],
}
Unlike previously, there is also acl related data saved in the object, i.e.
"_acl": {
"*": {
"r": true
},
"SPtdQePtm2": {
"w": true
},
"role:admin": {
"w": true
}
},
And consequence and is that a bug? P.S. I am using parse-server 2.1.2