You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cloud-code/Parse.Cloud.js
+2-2
Original file line number
Diff line number
Diff line change
@@ -751,8 +751,8 @@ module.exports = ParseCloud;
751
751
* @property {Array|function|Any} requireUserKeys.field.options array of options that the field can be, function to validate field, or single value. Throw an error if value is invalid.
752
752
* @property {String} requireUserKeys.field.error custom error message if field is invalid.
753
753
*
754
-
* @property {Array<String>}requireAnyUserRoles If set, request.user has to be part of at least one roles name to make the request.
755
-
* @property {Array<String>}requireAllUserRoles If set, request.user has to be part all roles name to make the request.
754
+
* @property {Array<String>|function}requireAnyUserRoles If set, request.user has to be part of at least one roles name to make the request. If set to a function, function must return role names.
755
+
* @property {Array<String>|function}requireAllUserRoles If set, request.user has to be part all roles name to make the request. If set to a function, function must return role names.
756
756
*
757
757
* @property {Object|Array<String>} fields if an array of strings, validator will look for keys in request.params, and throw if not provided. If Object, fields to validate. If the trigger is a cloud function, `request.params` will be validated, otherwise `request.object`.
758
758
* @property {String} fields.field name of field to validate.
0 commit comments