Skip to content

Commit eb620f2

Browse files
fix: Apply default ACL only on object creation, not update
1 parent 774cc54 commit eb620f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RestWrite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ RestWrite.prototype.setRequiredFieldsIfNeeded = function () {
370370
}
371371
};
372372

373-
// add default ACL
374-
if (
373+
// add default ACL (only on CREATE, not UPDATE)
374+
if (!this.query &&
375375
schema?.classLevelPermissions?.ACL &&
376376
!this.data.ACL &&
377377
JSON.stringify(schema.classLevelPermissions.ACL) !==

0 commit comments

Comments
 (0)