Skip to content

Variable: CanAll ​

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

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

spatie v8.5 canAll(): requires EVERY listed entry. A 'a|b' entry still means "a or b".

  • @CanAll('edit articles', 'publish articles'), @CanAll(['edit articles', 'publish|review'])

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