[support] D7Access Arguments

Vaibhav Jain in.vaibhavjain at gmail.com
Mon May 7 01:10:04 UTC 2012


You can try 2 things

1. Try removing access callback and let the default functionality take
over. Flush caches and then see if this works.
2. there is less possibility, but have you used drupal_access_denied in
your function, if so, is any condition going wrong ?

On Sun, May 6, 2012 at 6:43 PM, Fred Jones <fredthejonester at gmail.com>wrote:

> Here is my code:
>
> function mymod_menu(){
>  $items['front'] = array(
>    'title' => '',
>    'page callback' => 'mymod_homepage',
>    'type' => MENU_NORMAL_ITEM,
>    'access callback' => 'user_access',
>    'access arguments' => array('View published content'),
>  );
>  return $items;
> }
>
> and anonymous users have "View published content" checked off. With or
> without the "access callback" line, I get access denied for the home
> page for anon users. I am confused as to why. What am I missing here?
>
> Thank you,
> Fred
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Regards,
Vaibhav Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120507/66c34eaf/attachment.html 


More information about the support mailing list