Granular CLP pointer permissions (#6352)

* set pointer permissions per operatioon; tests

* more tests

* fixes addField permission; tests
This commit is contained in:
Old Grandpa
2020-01-28 09:21:30 +03:00
committed by Antonio Davi Macedo Coelho de Castro
parent 4beb89fc2e
commit 3c46117d9b
10 changed files with 1380 additions and 37 deletions

View File

@@ -31,7 +31,8 @@ function RestWrite(
query,
data,
originalData,
clientSDK
clientSDK,
action
) {
if (auth.isReadOnly) {
throw new Parse.Error(
@@ -47,6 +48,10 @@ function RestWrite(
this.runOptions = {};
this.context = {};
if (action) {
this.runOptions.action = action;
}
if (!query) {
if (this.config.allowCustomObjectId) {
if (