Skip to content

Commit b08f584

Browse files
stalniyTony133
andauthored
Update content/security/authorization.md
Co-authored-by: Tony <[email protected]>
1 parent 12b990d commit b08f584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/security/authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export class CaslAbilityFactory {
262262
263263
> info **Hint** `Ability`, `AbilityBuilder`, `AbilityClass`, and `ExtractSubjectType` classes are exported from the `@casl/ability` package.
264264
265-
> info **Hint** `detectSubjectType` option let CASL understand how to get subject type out of an object. Read the official [CASL documentation](https://casl.js.org/v5/en/guide/subject-type-detection#use-classes-as-subject-types) for details.
265+
> info **Hint** `detectSubjectType` option let CASL understand how to get subject type out of an object. For more information read [CASL documentation](https://casl.js.org/v5/en/guide/subject-type-detection#use-classes-as-subject-types) for details.
266266
267267
In the example above, we created the `Ability` instance using the `AbilityBuilder` class. As you probably guessed, `can` and `cannot` accept the same arguments but has different meanings, `can` allows to do an action on the specified subject and `cannot` forbids. Both may accept up to 4 arguments. To learn more about these functions, visit the official [CASL documentation](https://casl.js.org/v5/en/guide/intro).
268268

0 commit comments

Comments
 (0)