Specific CanCan Abilities for Rails Admin -
i trying manage permission in railsadmin, having trouble getting want to.
using ability file have set up. want able allow specific kind of user create, read, trash, export particular model.
i decided change:
can :manage, terms, company_id: company_id
to:
can [:create, :read, :trash, :export], terms, company_id: company_id
thinking still show little "info" , "delete" icons removing "edit" icon. instead shows "info" icon.
i want pencil gone. or guidance appreciated. looked @ cancan page , didn't help.
below:
can :manage, terms, company_id: company_id
i added:
cannnot :update, terms, company_id: company_id
which seemed work properly
Comments
Post a Comment