{"action":"closed","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2223","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2223/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2223/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/2223/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/2223","id":164208970,"number":2223,"title":"What is the appropriate method of handling ACL while within Cloud Code?","user":{"login":"MobileVet","id":1977118,"avatar_url":"https://avatars.githubusercontent.com/u/1977118?v=3","gravatar_id":"","url":"https://api.github.com/users/MobileVet","html_url":"https://github.com/MobileVet","followers_url":"https://api.github.com/users/MobileVet/followers","following_url":"https://api.github.com/users/MobileVet/following{/other_user}","gists_url":"https://api.github.com/users/MobileVet/gists{/gist_id}","starred_url":"https://api.github.com/users/MobileVet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MobileVet/subscriptions","organizations_url":"https://api.github.com/users/MobileVet/orgs","repos_url":"https://api.github.com/users/MobileVet/repos","events_url":"https://api.github.com/users/MobileVet/events{/privacy}","received_events_url":"https://api.github.com/users/MobileVet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-07T01:13:57Z","updated_at":"2016-07-07T18:49:45Z","closed_at":"2016-07-07T18:49:45Z","body":"### Issue Description\r\n\r\nUsing ACLs requires that a user is logged in to access various data.  However, Cloud Code does not really allow for a 'user'.  Attempting to 'become' a user with a passed in token produces a memory error.  This can be 'worked around' by calling enableUnsafeCurrentUser(), but is that appropriate?\r\n\r\nHow should ACL be handled when using Cloud Code?\r\n\r\n### Steps to reproduce\r\n\r\n  Parse.User.enableUnsafeCurrentUser();\r\n  Parse.User.become(request.params.token).then(function(user) {\r\n    // query requiring ACL\r\n    var query = new Parse.Query(\"customObject\");\r\n    return query.find();\r\n  }\r\n\r\n#### Expected Results\r\n\r\nquery results\r\n\r\n#### Actual Outcome\r\n\r\nno results (if you leave out the 'unsafe' and 'become')\r\n\r\n### Environment Setup\r\n\r\n- **Server**\r\n  - parse-server version: 2.2.15\r\n"}}
{"actor":{"display_login":"MobileVet"}}