Action::checkCanExecute should only block an Action if the user is sitewide blocked
authorDavid Barratt <dbarratt@wikimedia.org>
Mon, 12 Nov 2018 15:13:18 +0000 (10:13 -0500)
committerDavid Barratt <dbarratt@wikimedia.org>
Wed, 14 Nov 2018 19:45:30 +0000 (14:45 -0500)
commitf205e6e9f0b628341711804c8a8a2c34aba9ebc6
treee18dba68ed31e0974dd9b4a093072a818460c0aa
parentb1e4ca70b8e375d52c35b46fb3157fb852948263
Action::checkCanExecute should only block an Action if the user is sitewide blocked

The method over-enforces partial blocks by preventing users from performing
the action on unrelated pages.

Bug: T209284
Change-Id: I4ee0e7c0188d491cf8fc0bbbbf7e492cdf309f45
includes/actions/Action.php
tests/phpunit/includes/actions/ActionTest.php