From 069f8eafbb31082173654ae305a978976e150852 Mon Sep 17 00:00:00 2001 From: dblythy Date: Sat, 13 Feb 2021 12:38:40 +1100 Subject: [PATCH 1/2] Update cloud-code.md --- _includes/cloudcode/cloud-code.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_includes/cloudcode/cloud-code.md b/_includes/cloudcode/cloud-code.md index eba5519fa..3d0e79a9a 100644 --- a/_includes/cloudcode/cloud-code.md +++ b/_includes/cloudcode/cloud-code.md @@ -216,6 +216,9 @@ The full range of built-in Validation Options are: - `requireUser`: whether the function requires a `request.user` to run. - `validateMasterKey`: whether the validator should run on `masterKey` (defaults to false). - `fields`: an `Array` or `Object` of fields that are required on the request. +- `requireAnyUserRoles`: an `Array` or `function` that returns an array. `request.user` must match one of the specified roles. +- `requireAllUserRoles`: an `Array` or `function` that returns an array. `request.user` must match all of the specified roles. +- `requireUserKeys`: an `Array` of fields to be validated on `request.user`. - `requireUserKeys`: an `Array` of fields to be validated on `request.user`. The full range of built-in Validation Options on `.fields` are: From c031a16c79752854cbbaf66e35a63522fb0a1e6c Mon Sep 17 00:00:00 2001 From: dblythy Date: Sat, 13 Feb 2021 12:38:58 +1100 Subject: [PATCH 2/2] Update cloud-code.md --- _includes/cloudcode/cloud-code.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_includes/cloudcode/cloud-code.md b/_includes/cloudcode/cloud-code.md index 3d0e79a9a..0a6037886 100644 --- a/_includes/cloudcode/cloud-code.md +++ b/_includes/cloudcode/cloud-code.md @@ -219,7 +219,6 @@ The full range of built-in Validation Options are: - `requireAnyUserRoles`: an `Array` or `function` that returns an array. `request.user` must match one of the specified roles. - `requireAllUserRoles`: an `Array` or `function` that returns an array. `request.user` must match all of the specified roles. - `requireUserKeys`: an `Array` of fields to be validated on `request.user`. -- `requireUserKeys`: an `Array` of fields to be validated on `request.user`. The full range of built-in Validation Options on `.fields` are: