[pmwiki-users] upgrade problem

adam overton a at plus1plus1plus.org
Sat Jul 3 04:19:45 CDT 2010


hi petko
that was exactly the problem
i had $HandleAuth['read'] = 'edit';
after commenting it out everything executes as usual.
i can't remember if i had a good reason for setting   $HandleAuth 
['read'] = 'edit';, so i guess we'll see if something goes wrong down  
the line at some point. : )
thx
adam



On 3 Jul 2010, at 2:10 AM, Petko Yotov wrote:

> On Saturday 03 July 2010 09:27:20, adam overton wrote :
>> i just updated my wiki from 2.2.6 to 2.2.17.
>> before the shift, my wiki easily executed the following:
>>
>> if (CondAuth($pagename, 'read')) {
>> 	echo "test";
>> }
>>
>> result -> test
>>
>>
>> now, after the upgrade, nothing is executed or printed.
>> did something in CondAuth change since 2.2.6?
>
> Yes, something changed. Previously CondAuth() didn't respect custom  
> settings
> of the $HandleAuth array and it could return a wrong answer. For  
> example, if
> you have a setting like this:
>
>   $HandleAuth['read'] = 'edit';
>
> then to "read" the page you need edit permissions. Previously,  
> CondAuth could
> return true even if the user didn't have edit permissions.
>
> The related PITS entry is http://www.pmwiki.org/wiki/PITS/01164 .
>
> I'll double-check if something didn't go wrong somewhere -- if you  
> can provide
> additional details about your configuration, that could be useful.
>
> Petko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100703/72176c24/attachment.html>


More information about the pmwiki-users mailing list