File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,8 @@ The full range of built-in Validation Options are:
216
216
- ` requireUser ` : whether the function requires a ` request.user ` to run.
217
217
- ` validateMasterKey ` : whether the validator should run on ` masterKey ` (defaults to false).
218
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.
219
221
- ` requireUserKeys ` : an ` Array ` of fields to be validated on ` request.user ` .
220
222
221
223
The full range of built-in Validation Options on ` .fields ` are:
You can’t perform that action at this time.
0 commit comments