[pmwiki-users] Set a password for some actions | need help, please

kirpi at kirpi.it kirpi at kirpi.it
Wed Mar 8 19:05:46 CST 2006


> Is the ?action=search actually taking place from a page in the
> Group, or is it coming from the Site.Search page?  (Changing $HandleAuth
> in Group.php won't have any effect if Site.Search is the page being loaded.)

Ok, I think now I better understand what you ask.
?action=search is *not* coming from Site.Search page?



> > > I have a couple of pages, say Group.A and Group.B for which I need to
> > > block all the actions *but* ?action=pdf. In other words I would like
> > > to let the people see the pdf created on the fly, but not the regular
> > > pages.
> > > How do I accomplish this, please?
> How about...?
>
>    if ($action != 'pdf') $HandleAuth[$action] = 'admin';
>
> Basically this says that one can only do ?action=pdf on a page,
> everything else will require admin permissions.

Where should I insert the line you suggest, please?

Luigi




More information about the pmwiki-users mailing list