* Adds regression test for #2780 * Fixes #2780 - Make sure we compare installationId from the data and not the auth when rejecting update
This commit is contained in:
@@ -639,8 +639,8 @@ RestWrite.prototype.handleInstallation = function() {
|
||||
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND,
|
||||
'Object not found for update.');
|
||||
}
|
||||
if (installationId && objectIdMatch.installationId &&
|
||||
installationId !== objectIdMatch.installationId) {
|
||||
if (this.data.installationId && objectIdMatch.installationId &&
|
||||
this.data.installationId !== objectIdMatch.installationId) {
|
||||
throw new Parse.Error(136,
|
||||
'installationId may not be changed in this ' +
|
||||
'operation');
|
||||
|
||||
Reference in New Issue
Block a user