Skip to content

Variable: CanAny ​

ts
const CanAny: RbacDecorators["CanAny"] = defaults.CanAny;

Defined in: packages/nestjs/src/decorators.ts:242

spatie v8.5 canAny(): passes with ANY of the listed permissions.

  • @CanAny('edit articles', 'publish articles'), @CanAny(['edit articles', 'publish articles'])

Released under the MIT License. Inspired by spatie/laravel-permission.