sferik/rails_admin — Issue #986: CanCan - Hide menu item
Author: alansikora
Created: 2012-02-17 18:19:46+00:00
State: open

Hello,

I'm using CanCan with RailsAdmin and not being able to do this:

can :read, Role, :id => [2, 3]
cannot :index, Role

This hides the "Roles" left menu item, but also does not allow me to select the one role on a belongs_to association.

Maybe I'm just dumb, but I'd appreciate some help ;)

Thank you