{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/558","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/558/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/558/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/558","id":135316547,"number":558,"title":"Missing ACL info in database object","user":{"login":"mchun","id":7677094,"avatar_url":"https://avatars.githubusercontent.com/u/7677094?v=3","gravatar_id":"","url":"https://api.github.com/users/mchun","html_url":"https://github.com/mchun","followers_url":"https://api.github.com/users/mchun/followers","following_url":"https://api.github.com/users/mchun/following{/other_user}","gists_url":"https://api.github.com/users/mchun/gists{/gist_id}","starred_url":"https://api.github.com/users/mchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchun/subscriptions","organizations_url":"https://api.github.com/users/mchun/orgs","repos_url":"https://api.github.com/users/mchun/repos","events_url":"https://api.github.com/users/mchun/events{/privacy}","received_events_url":"https://api.github.com/users/mchun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-22T04:50:26Z","updated_at":"2016-03-07T15:35:45Z","closed_at":null,"body":"I used the following code on server side for saving object:\r\n\r\n```\r\napp.post('/',requireUser, function(req, res) {\r\n    var post = new Post();\r\n    post.set(\"Category\",req.body.Category)\r\n    var acl = new Parse.ACL();\r\n    acl.setPublicReadAccess(true);\r\n    acl.setRoleWriteAccess(\"admin\", true);\r\n    acl.setWriteAccess(req.user, true);\r\n    post.setACL(acl);\r\n    post.save(null,{sessionToken:req.user.sessionToken});\r\n  });\r\n\r\n```\r\nAnd this is the data saved in MongoDB\r\n```\r\n{\r\n    \"_rperm\": [\r\n        \"*\"\r\n    ],\r\n    \"_wperm\": [\r\n        \"role:admin\",\r\n        \"SPtdQePtm2\"\r\n    ],\r\n}\r\n```\r\n\r\nUnlike previously, there is also acl related data saved in the object, i.e.\r\n\r\n```\r\n    \"_acl\": {\r\n        \"*\": {\r\n            \"r\": true\r\n        },\r\n        \"SPtdQePtm2\": {\r\n            \"w\": true\r\n        },\r\n        \"role:admin\": {\r\n            \"w\": true\r\n        }\r\n    },\r\n\r\n```\r\nAnd consequence and is that a bug? P.S. I am using parse-server 2.1.2"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/193302534","html_url":"https://github.com/ParsePlatform/parse-server/issues/558#issuecomment-193302534","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/558","id":193302534,"user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T15:35:45Z","updated_at":"2016-03-07T15:35:45Z","body":"ACL are transformed when saved to mongodb for performance optimization reasons. Do you have problem with objects that should not be read?"}}