Adds fix for issue affecting update with CLP (#5269)

* Adds fix for issue affecting update with CLP

* Disable single instance
This commit is contained in:
Florent Vilmart
2019-01-04 14:23:27 -05:00
committed by GitHub
parent 9f2fc88f0f
commit 46ac7e7f11
6 changed files with 22 additions and 23 deletions

View File

@@ -1141,7 +1141,6 @@ class DatabaseController {
distinct,
pipeline,
readPreference,
isWrite,
}: any = {}
): Promise<any> {
const isMaster = acl === undefined;
@@ -1217,7 +1216,7 @@ class DatabaseController {
);
}
if (!query) {
if (op == 'get') {
if (op === 'get') {
throw new Parse.Error(
Parse.Error.OBJECT_NOT_FOUND,
'Object not found.'
@@ -1227,7 +1226,7 @@ class DatabaseController {
}
}
if (!isMaster) {
if (isWrite) {
if (op === 'update' || op === 'delete') {
query = addWriteACL(query, aclGroup);
} else {
query = addReadACL(query, aclGroup);