skipWithMasterKey on Built-In Validator (#6972)

* Initial Commit

* Change to resolveMasterKey

* Change to skipWithMasterKey
This commit is contained in:
dblythy
2020-10-27 06:49:30 +11:00
committed by GitHub
parent 7f3ea3fe80
commit 6fc3afce71
4 changed files with 179 additions and 13 deletions

View File

@@ -712,6 +712,7 @@ module.exports = ParseCloud;
* @property {Boolean} requireUser whether the cloud trigger requires a user.
* @property {Boolean} requireMaster whether the cloud trigger requires a master key.
* @property {Boolean} validateMasterKey whether the validator should run if masterKey is provided. Defaults to false.
* @property {Boolean} skipWithMasterKey whether the cloud code function should be ignored using a masterKey.
*
* @property {Array<String>|Object} requireUserKeys If set, keys required on request.user to make the request.
* @property {String} requireUserKeys.field If requireUserKeys is an object, name of field to validate on request user