Granular CLP pointer permissions (#6352)
* set pointer permissions per operatioon; tests * more tests * fixes addField permission; tests
This commit is contained in:
committed by
Antonio Davi Macedo Coelho de Castro
parent
4beb89fc2e
commit
3c46117d9b
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user