Last modified: 2010-05-15 15:54:49 UTC
I've noticed today that userCanRead and userCan('read') seem to be providing different results, in particular in Special:Search... r21402 was committed to patch Bug #8825, but it appears my installation with the Lockdown extension does not have the desired effect. I proceeded to change line 327 of includes/SpecialSearch.php from: if (!$t->userCanRead()) { to: if (!$t->userCanRead() || !$t->userCan( 'read' )) { which has seemed to solve the problem and provide the desired results. Any thoughts?
See line 1420, there is a shortcircuit check added for perfomance.
(In reply to comment #1) > See line 1420, there is a shortcircuit check added for perfomance. > Actually, I'm a bit of a twit, now I look, yes there is the shortcircuit, and it's fixed in SVN... Sorry all.