mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 15:29:27 +00:00
Merge branch 'api-token-v2/engine-abstraction' of github.com:strapi/strapi into api-token-v2/engine-abstraction
This commit is contained in:
commit
80713eddff
@ -31,7 +31,7 @@ ability.can('update', 'foo'); // false
|
|||||||
ability.can('update', 'bar'); // true
|
ability.can('update', 'bar'); // true
|
||||||
```
|
```
|
||||||
|
|
||||||
- You need to give both an action and a condition provider as parameter when instanciating a new permission engine instance. They must be contained in a `providers` object property.
|
- You need to give both an action and a condition provider as parameters when instantiating a new permission engine instance. They must be contained in a `providers` object property.
|
||||||
- You can also pass an `abilityBuilderFactory` to customize what kind of ability the `generateAbility` method will return. By default it'll use a `@casl/ability` builder.
|
- You can also pass an `abilityBuilderFactory` to customize what kind of ability the `generateAbility` method will return. By default it'll use a `@casl/ability` builder.
|
||||||
|
|
||||||
You can also register to some hooks for each engine instance
|
You can also register to some hooks for each engine instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user