Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Hide resource from menu
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
yecin...@gmail.com  
View profile  
 More options Jun 8 2012, 9:59 pm
From: yecin...@gmail.com
Date: Fri, 8 Jun 2012 18:59:11 -0700 (PDT)
Local: Fri, Jun 8 2012 9:59 pm
Subject: Hide resource from menu

Hi,

I'm using ActiveAdmin in combinaison with cancan and i have some resource
that are accessible only for certains roles

I want to hide the resources that are not accessible to the user from the
top menu

How can i do that ?

Thanks for your help


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James McKinney  
View profile  
 More options Jul 1 2012, 3:23 pm
From: James McKinney <ja...@opennorth.ca>
Date: Sun, 1 Jul 2012 12:23:31 -0700 (PDT)
Local: Sun, Jul 1 2012 3:23 pm
Subject: Re: Hide resource from menu

See
https://github.com/gregbell/active_admin/wiki/How-To-Disable-A-Resour...

To conditionally disable a menu (for example, if you use CanCan):

ActiveAdmin.register ClassName do
  menu :if => proc{ can? :manage, ClassName }
end


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »