ryanb/cancan — Issue #499: Ability hierarchy
Author: rogercampos
Created: 2011-10-28 14:03:54+00:00
State: open

Hi, first of all thanks for this awesome gem!

I just want to ask If there is a way to set a sort of ability hierarchy. Take for instance an escenario where I want to restrict in which languages my website can be seen. I need to define something similar to:

```
can :read, :my_website
can :read_in_en, :my_website
can :read_in_fr, :my_website
```

I wonder if it's a way to link the more general ability to the more concrete, meaning that if a user "can read my_website", when I ask if he "can :read_in_en, :my_website ?" the answer should be true.

This way I could simple add the more general ability to him and it should be true for any language.

Thanks!