We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe050b commit 3b0ab80Copy full SHA for 3b0ab80
global_config.js
@@ -8,6 +8,10 @@ var router = new PromiseRouter();
8
9
// Returns a promise for a {response} object.
10
function handleUpdateGlobalConfig(req) {
11
+ if (!req.auth.isMaster) {
12
+ throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN, 'Config updates requires valid masterKey.');
13
+ }
14
+
15
return rest.update(req.config, req.auth,
16
'_GlobalConfig', 1, req.body)
17
.then((response) => {
0 commit comments