[pmwiki-users] Alternate authorization levels for $EnableDiag	actions
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Thu Jul  5 16:31:34 CDT 2007
    
    
  
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
    
    
More information about the pmwiki-users
mailing list