[development] Tell if current page is viewable by anonymous users

Petr Vacha dev.newsletters at gmail.com
Tue Feb 19 17:55:59 UTC 2008


You can use function menu_valid_path()

> Hi,
>
> is there a way to determine (in a module) whether the current page can 
> be viewed by anonymous users?
>
> I've found user_access() and drupal_anonymous_user() - but this would 
> require a node. Do all "public" pages have a node?
>
> Kind regards,
>
> Salgar 


More information about the development mailing list