cancancan
https://github.com/cancancommunity/cancancan
Ruby
The authorization Gem for Ruby on Rails.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
9 Subscribers
Add a CodeTriage badge to cancancan
Help out
- Issues
- How to define ability action name that is same as the default action aliases?
- Possible breaking change with handling of `nil` conditions in 3.5.0
- can? should return false when there are no attributes that the current user can perform action on
- `can?` unnecessarily loads relationships in memory when it could leverage `accessible_by`
- Leverage accessible_by from can? when possible
- inconsistent behaviour with Hash subjects
- Granting read permission on intermediate STI table prevents any records being returned
- Selective permissions on STI sub-classes not respected by accessible_by
- feat: allow if and unless options for skipping authorize and load, similar to check_authorization
- Deep conditions nesting on sqlite => stack overflow
- Docs
- Subscribe to help with docs for this repo and come back later