[pmwiki-users] CondAuth inside of config.php after include authuser, returns ok when read password GroupAttributes enabled.

Chris Cox ccox at endlessnow.com
Thu May 21 18:09:20 CDT 2009


On Thu, 2009-05-21 at 17:31 -0500, Chris Cox wrote:
...
> if (CondAuth($pagename,$action)) {
>         $ok='ok';
> } else {
>         $ok='not ok';
> }

Answering my own question.  Protection is done for 'read', which
isn't an action, and certainly isn't the default action, which is
browse.  So... I altered my logic to check to see if the action
is browse and if CondAuth($pagename,'read') is ok or not to determine
if the user has the ability to read the page.

My brain hurts a bit... but this is solved (at least functionality
wise) for me now.





More information about the pmwiki-users mailing list