AllowCreateModelValidationQuery.authUsers constructor

const AllowCreateModelValidationQuery.authUsers()

Authenticated users.

If DatabaseValidator.onRetrieveUserId does not return Null, this is the user.

If allUsers is specified, it takes precedence.

認証済みのユーザー。

DatabaseValidator.onRetrieveUserIdNullを返さない場合このユーザーとなります。

allUsersが指定されている場合はそちらが優先されます。

Define the validation query to be used by DatabaseValidator.

Basically, if a listing exists on ModelQuery, permissions are specified in a white list format.

You can specify attributes to allow by specifying permission or user.

DatabaseValidatorで使用するバリデーションクエリを定義します。

基本的にはModelQuery上でリストが存在している場合、ホワイトリスト形式でパーミッションが指定されます。

permissionuserを指定して許可をする属性を指定できます。

Implementation

const AllowCreateModelValidationQuery.authUsers()
    : this._(
        permission: ModelValidationQueryPermissionType.allowCreate,
        user: ModelValidationQueryUserType.authUsers,
      );