19 Feb
2008
19 Feb
'08
7:50 p.m.
Jerad Bitner wrote:
Does the module itself provide the page? No, the module just display ads. But they should only appear on a page if anonymous users can also view this page.
So if a user is logged in and visits a page which is also accessible for everyone - he sees ads. If he visits a page which is not accessible for anonymous users - he sees no ads. So I need something like: may_access(drupal_get_path_alias($_GET['q']), drupal_anonymous_user()) Kind regards, Salgar