https://bugzilla.wikimedia.org/show_bug.cgi?id=26020

--- Comment #3 from Alexandre Emsenhuber [IAlex] <ialex.w...@gmail.com> 
2010-11-20 12:31:54 UTC ---
Created attachment 7841
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=7841
Patch to change Title::getUserPermissionsErrors() to make correct checks for
read permission

The problem is bigger that this. Title::getUserPermissionsErrors() is not
supposed to be used to check for read permissions; but Title::userCanRead() can
only check permissions for $wgUser.

I attached a patch to make Title::getUserPermissionsErrors() check correctly
for read permissions; dunno if Domas will like it since it's ~1.4 times slower
than the old method (on my local machine).

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to