Block Special pages only if the user is sitewide blocked
authorDavid Barratt <dbarratt@wikimedia.org>
Thu, 21 Feb 2019 17:54:35 +0000 (12:54 -0500)
committerDbarratt <dbarratt@wikimedia.org>
Mon, 4 Mar 2019 16:14:11 +0000 (16:14 +0000)
commita574f4c065e787166613dae3c7e5849b38d614c5
tree5c4d29348a91bdb388cb786985749025034ca329
parent5376b0b4b24ab5ca02989e1e10bde672581675f5
Block Special pages only if the user is sitewide blocked

Update the default implementation of FormSpecialPage::checkExecutePermissions()
so that a Special page is only blocked if the user has a sitewide block.

This change allows the user to continue performing critical functions (like
resetting their password) even if they are partially blocked.

Bug: T209097
Change-Id: I5190297b7b235b6ebbdfa522323ce9bbd46b6729
includes/specialpage/FormSpecialPage.php
tests/common/TestsAutoLoader.php
tests/phpunit/includes/specialpage/FormSpecialPageTestCase.php [new file with mode: 0644]
tests/phpunit/includes/specials/SpecialPasswordResetTest.php [new file with mode: 0644]