On Thu, Jul 05, 2007 at 09:33:02AM -0700, H. Fox wrote:
> >To get ?action=diag to require edit permission, one currently
> >does it explicitly in local/config.php, with something like:
> >
> >  if ($action == 'diag' && !CondAuth($pagename, 'edit'))
> >    $action = 'browse';
> 
> How about this?
> 
>   if (CondAuth($pagename, 'edit')) $EnableDiag = 1;

Even better.

Pm

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to