From 5de33ac226025e1d8c7b9a59566d42ca3cbb2177 Mon Sep 17 00:00:00 2001 From: Francis Lessard Date: Thu, 18 Feb 2016 13:29:26 -0500 Subject: [PATCH] Fix : save whit masterKey cause object not found. --- src/RestWrite.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/RestWrite.js b/src/RestWrite.js index 88296b4e..777973d7 100644 --- a/src/RestWrite.js +++ b/src/RestWrite.js @@ -27,9 +27,7 @@ function RestWrite(config, auth, className, query, data, originalData) { this.auth = auth; this.className = className; this.storage = {}; - this.runOptions = { - acl:[] - }; + this.runOptions = {}; if (!query && data.objectId) { throw new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'objectId ' + @@ -99,7 +97,7 @@ RestWrite.prototype.getUserAndRoleACL = function() { return Promise.resolve(); } - this.runOptions.acl.push("*"); + this.runOptions.acl = ['*']; if( this.auth.user ){ return this.auth.getUserRoles().then((roles) => {