Proposed fix: Skip user block checks for Title::quickUserCan()
In 1.16, unprotected pages showed an "edit" tab to the user, even if he was blocked from editing. In 1.17 this behavior has accidentally changed to show a "view source" tab for blocked users. This is problematic because the page is then cached in squid and shown to other, non-blocked users with the wrong tab.
The change has been caused by r65504, when Title::getUserPermissionsErrorsInternal (which is called for quickUserCan) was refactored to also check for user blocks. The attached patch fixes this by skipping the block checks for Title::quickUserCan. Note that the patch also removes an unnecessary check for "$short && count($errors)", this is handled by getUserPermissionsErrorsInternal() already.
Version: 1.18.x
Severity: normal
URL: http://de.wikipedia.org/w/index.php?oldid=87148073#Seitenschutz_-_oder_doch_nicht.3F
Attached: