wiki.techinc.nl/tests/phpunit/includes/specials/SpecialPasswordResetTest.php
David Barratt a574f4c065 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
2019-03-04 16:14:11 +00:00

10 lines
181 B
PHP

<?php
class SpecialPasswordResetTest extends FormSpecialPageTestCase {
/**
* {@inheritdoc}
*/
protected function newSpecialPage() {
return new SpecialPasswordReset();
}
}