-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to specify possible actions, subject types and conditions for Ability
#256
Closed
11 tasks done
Labels
Milestone
Comments
can
functionsAbility
stalniy
added a commit
that referenced
this issue
Feb 13, 2020
stalniy
added a commit
that referenced
this issue
Feb 13, 2020
deprecates `actions` field in `Rule` types use `action` instead deprecates `AbilityBuilder.define` use `AbilityBuilder.extract` instead removes default `crud` alias. If you want it use `Ability.addAlias('crud', ['create', 'read', 'update', 'delete'])` removes possibility to pass `RuleType` option in `Ability` constructor. Use `conditionsMatcher` and `fieldMatcher` options instead. `packRules` and `unpackRules` now accepts optional second argument which packs/unpacks subject type. This is useful when you want to use Classes as subject types Fixes #256 BREAKING CHANGES
stalniy
added a commit
that referenced
this issue
Feb 13, 2020
…lues for generics Also adds default generic values for AbilityModule in angular package Relates to #256
stalniy
added a commit
that referenced
this issue
Feb 14, 2020
Prefixed private methods with _ Relates to #256 BREAKING CHANGES
stalniy
added a commit
that referenced
this issue
Feb 14, 2020
Prefixed private methods with _ Relates to #256 BREAKING CHANGES
stalniy
added a commit
that referenced
this issue
Feb 14, 2020
stalniy
added a commit
that referenced
this issue
Feb 17, 2020
deprecates `actions` field in `Rule` types use `action` instead deprecates `AbilityBuilder.define` use `AbilityBuilder.extract` instead removes default `crud` alias. If you want it use `Ability.addAlias('crud', ['create', 'read', 'update', 'delete'])` removes possibility to pass `RuleType` option in `Ability` constructor. Use `conditionsMatcher` and `fieldMatcher` options instead. `packRules` and `unpackRules` now accepts optional second argument which packs/unpacks subject type. This is useful when you want to use Classes as subject types Fixes #256 BREAKING CHANGES
stalniy
added a commit
that referenced
this issue
Feb 17, 2020
…lues for generics Also adds default generic values for AbilityModule in angular package Relates to #256
stalniy
added a commit
that referenced
this issue
Feb 17, 2020
Prefixed private methods with _ Relates to #256 BREAKING CHANGES
stalniy
added a commit
that referenced
this issue
Feb 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow to specify which subjects
Ability
can use. Affects:Ability
can
cannot
update
Rule
&RawRule
AbilityBuilder
can
cannot
ForbiddenError
For example:
The text was updated successfully, but these errors were encountered: