[development] How do I restrict the custom urls to a specific role?
contact at rowlandsgroup.com
Thu Mar 10 21:25:40 UTC 2011
Change your access callback from TRUE
and add the name of the permission as an access argument, don't use a
role - as these change by site - use a permission instead.
$items['admin/store/free_subscription'] = array(
'title' => 'free_subscription_form',
'description' => 'free_subscription_form',
'page callback' => 'free_subscription_form',
'access arguments' => array('some permission name'),
'type' => MENU_CALLBACK,
On Thu, 2011-03-10 at 16:06 -0500, John Mitchell wrote:
> How do I restrict the custom urls (listed below) to a specific role?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development