access-granted icon indicating copy to clipboard operation
access-granted copied to clipboard

Multi-role and whitelist based authorization gem for Rails (and not only Rails!)

Results 9 access-granted issues
Sort by recently updated
recently updated
newest added

I propose to add an interface for introspection uses. It can help in different situations. For example, if you need to serialize some object along with current_user's privileges on it...

I'm pretty new to Rails, however, I work on the app where I have this trio: `users, wikis, wiki_users`. Many users can be assigned to many wikis and vice versa....

This relates to #32, but since it's been a couple years I thought it was worth opening a new issue. I would LOVE it if access-granted could have a special...

README says: > Note: cannot is still available, but has a very specifc [sic] use. See Usage below. However, no example is actually given of `cannot` in Usage or elsewhere....

bug
docs

It would be nice not having to call authorize! in every controller method. Do you have any plans to include this functionality? I'm curious, how much work/how complicated is it?...

enhancement

Asking because last update was 7 months ago, last release almost a year ago and some outstanding issues.

I found what I think is an inconvenient inconsistency around inheritance; I also have a simple PR to fix it. access_granted normally works great with inheritance. Imagine we have a...

As I'm trying to do something a bit more convoluted in my app, I'm realizing access-granted doesn't work quite as I thought for being able to kind of interchangeably use...

if Bicycle < Vehicle, and you have a policy `can :read, Vehicle`, then already `can?(:read, Vehicle.new)` and `can?(:read, Bicycle.new)` are both true. `can?(:read, Vehicle)` is also true. I believe `can?(:read,...