We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
parse-community
Learn more about funding links in repositories.
Report abuse
1 parent 0ca8a55 commit 587b930Copy full SHA for 587b930
_includes/cloudcode/cloud-code.md
@@ -216,6 +216,8 @@ The full range of built-in Validation Options are:
216
- `requireUser`: whether the function requires a `request.user` to run.
217
- `validateMasterKey`: whether the validator should run on `masterKey` (defaults to false).
218
- `fields`: an `Array` or `Object` of fields that are required on the request.
219
+- `requireAnyUserRoles`: an `Array` or `function` that returns an array. `request.user` must match one of the specified roles.
220
+- `requireAllUserRoles`: an `Array` or `function` that returns an array. `request.user` must match all of the specified roles.
221
- `requireUserKeys`: an `Array` of fields to be validated on `request.user`.
222
223
The full range of built-in Validation Options on `.fields` are:
0 commit comments