Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CanCan 2.0 Resource attribute abilities - value masking #834
Is it possible in CanCan 2 to define abilities on attributes, and the possible values that can be set.
I suppose the broadest example is the
Admin of course has access to set any role they chose, while each tier can then only assign the roles available beneath them.
If not, would configuration following the example below work out? It seems (naively) flexible (rather than taking into consideration any hierarchy rules.)
etc... being able to specify, ranges, bitmasks etc. as alternatives to the final argument.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Thanks for your submission! The ryanb/cancan repository has been inactive since Sep 06, 2013.
If your pull request or issue is still applicable, it would be really appreciated if you resubmit it to CanCanCan.
We hope to see you on the other side!