Check if https://github.com/the-teacher/the_role gem is smth what you need. 
You will still have to adapt rules inside your app.

On Monday, February 2, 2015 at 5:37:02 PM UTC+1, Alessandro Bottoni wrote:
>
> Hi All,
> I have just been asked to develop a user administration system that should 
> be able to manage the following hierarchy of admins and users:
>
>    - A small group (1 - 5) of "superadmins" who can create regular 
>    "admins" and "users" and can performs all kind of actions
>    - A large group (hundreds) of regular "admins" who can create regular 
>    "users" and can perform all kind of actions but the 
>    creation/editing/deletion of admins and superadmins
>    - A very large group (thousands) of regular "users" who can just 
>    perform a trivial set of CRUD actions on a small set of "user assets"
>    
>
> While such an architecture can easily be implemented by hand using rails, 
> devise and pundit (or cancancan), I wonder if I could save some time using 
> any of the existing admin interface frameworks, like ActiveAdmin, 
> rails_admin, Upmin-admin or even the more generic ActiveScaffold.
>
> As long as I can see, this hierarchy could be implemented using a set of 
> pundit/cancancan authorizations and a small set of admin pages (or "admins 
> sections") so most of these framework should be able to implement it.
>
> Does anybody have any experience of such use of any of these frameworks? 
> Does anybody know of any tutorial, any example or any open source 
> application I could check and study? Any suggestion?
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b5ef76b5-4854-4d22-a225-f28457de7c9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to