[pmwiki-users] Enabling search only for logged in

Hans Bracker design at softflow.co.uk
Tue Feb 7 08:27:01 CST 2012


> $HandleAuth['search'] = 'admin';

> if (!CondAuth($pagename,'admin') && $action=='search')
>      $action='browse';

PS: I would use both. The first to tie action=search to admin
auhentication, the second to make it a "no action/ carry on normal"
for ordinary visitors.

If you have editors who are not admins, and who need search, change
'admin' to 'edit'


Best regards,
 Hans
 www.softflow.co.uk




More information about the pmwiki-users mailing list