Added logout test and fixed error in restwrite

This commit is contained in:
Fosco Marotto
2016-02-10 14:52:42 -08:00
parent ab12ff76b8
commit dee640c7d0
2 changed files with 23 additions and 1 deletions

View File

@@ -637,7 +637,7 @@ RestWrite.prototype.runDatabaseOperation = function() {
this.query &&
!this.auth.couldUpdateUserId(this.query.objectId)) {
throw new Parse.Error(Parse.Error.SESSION_MISSING,
'cannot modify user ' + this.objectId);
'cannot modify user ' + this.query.objectId);
}
// TODO: Add better detection for ACL, ensuring a user can't be locked from