RoleCheck.any constructor
Create a new RoleCheck that succeeds if the user that created the context has any of roles
.
You might also be interested in:
- RoleCheck.anyId, for creating this same check without instances of Role.
Implementation
RoleCheck.any(Iterable<Role> roles, {String? name})
: this.anyId(roles.map((role) => role.id), name: name);