From fec751b5e6c4922bd03a9837139fb04392087441 Mon Sep 17 00:00:00 2001 From: Taylor Stine Date: Wed, 3 Feb 2016 07:24:57 -0500 Subject: [PATCH] Added master option to cloud code functions --- functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.js b/functions.js index ee2ac54125..97074715a1 100644 --- a/functions.js +++ b/functions.js @@ -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); });