User-customizable rails authorization
Posted
by neutrino
on Stack Overflow
See other posts from Stack Overflow
or by neutrino
Published on 2009-06-26T13:36:58Z
Indexed on
2010/03/14
21:05 UTC
Read the original article
Hit count: 207
authorization
|ruby-on-rails
Hello everyone,
Seems there is an abundance of popular declarative-style authorization plugins, which allow you to somehow state in the code that, e.g., this controller action can be accessed by users with such-and-such roles.
But what if I need a more dynamic scheme. I want to have an admin area, with a list of all authorizable actions and an ability to assign permissions on actions from the UI.
I have ideas how to implement it from scratch, like to define a model corresponding to a controller and/or action and store the permissions via normal associations. Just wonder if there are any ready solutions to this.
Thanks a lot
© Stack Overflow or respective owner