Migrate remaining usages of Title::userCan() to PermissionManager
authorMáté Szabó <mszabo@wikia-inc.com>
Mon, 3 Jun 2019 10:48:02 +0000 (12:48 +0200)
committerMáté Szabó <mszabo@wikia-inc.com>
Mon, 3 Jun 2019 11:03:46 +0000 (13:03 +0200)
commit6420c79320bc099cb4ff77232beabd72040146d0
tree293d2b612286d9ce0ef1dcf0ccc7b731bef8c80a
parent75cffa0b998b300b4d79ab3d1e7f61857d32b1aa
Migrate remaining usages of Title::userCan() to PermissionManager

T208768 introduced the PermissionManager service that can now be used
for page specific permission checks. This change replaces remaining calls
to Title::userCan() with the new service in MediaWiki core.

Bug: T220191
Change-Id: Ie45e0cb6aa49a8c66147b470946161fc18160fc1
14 files changed:
img_auth.php
includes/OutputPage.php
includes/Revision/RevisionRecord.php
includes/actions/InfoAction.php
includes/actions/McrUndoAction.php
includes/diff/DifferenceEngine.php
includes/import/WikiImporter.php
includes/page/WikiPage.php
includes/specials/SpecialExport.php
includes/specials/SpecialUndelete.php
includes/specials/pagers/ImageListPager.php
includes/widget/search/FullSearchResultWidget.php
tests/phpunit/includes/Revision/RevisionRendererTest.php
thumb.php