Skip to content

Commit

Permalink
Merge pull request #209 from taylorstine/cloud_master
Browse files Browse the repository at this point in the history
Added master option to cloud code functions
  • Loading branch information
gfosco committed Feb 3, 2016
2 parents e44106f + fec751b commit 6946d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function handleCloudFunction(req) {
var response = createResponseObject(resolve, reject);
var request = {
params: req.body || {},
user: req.auth && req.auth.user || {}
master: req.auth && req.auth.isMaster,
user: req.auth && req.auth.user,
};
Parse.Cloud.Functions[req.params.functionName](request, response);
});
Expand Down

0 comments on commit 6946d86

Please sign in to comment.