Skip to content

Commit 5de33ac

Browse files
author
Francis Lessard
committed
Fix : save whit masterKey cause object not found.
1 parent 67c7670 commit 5de33ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/RestWrite.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ function RestWrite(config, auth, className, query, data, originalData) {
2727
this.auth = auth;
2828
this.className = className;
2929
this.storage = {};
30-
this.runOptions = {
31-
acl:[]
32-
};
30+
this.runOptions = {};
3331

3432
if (!query && data.objectId) {
3533
throw new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'objectId ' +
@@ -99,7 +97,7 @@ RestWrite.prototype.getUserAndRoleACL = function() {
9997
return Promise.resolve();
10098
}
10199

102-
this.runOptions.acl.push("*");
100+
this.runOptions.acl = ['*'];
103101

104102
if( this.auth.user ){
105103
return this.auth.getUserRoles().then((roles) => {

0 commit comments

Comments
 (0)