Remove use of Title::quickUserCan

Bug: T244927
Change-Id: I179a4faa26b3265d162fcb0d41bd9515fef623e8
This commit is contained in:
DannyS712 2020-02-12 06:56:41 +00:00
parent 0397f71b96
commit 0cae9b7d35

View file

@ -123,7 +123,8 @@ class LintErrorsPager extends TablePager {
case 'title':
$title = Title::makeTitle( $row->page_namespace, $row->page_title );
$viewLink = $this->linkRenderer->makeLink( $title );
$editMsgKey = $title->quickUserCan( 'edit', $this->getUser() ) ?
$permManager = MediaWikiServices::getInstance()->getPermissionManager();
$editMsgKey = $permManager->quickUserCan( 'edit', $this->getUser(), $title ) ?
'linter-page-edit' : 'linter-page-viewsource';
$editLink = $this->linkRenderer->makeLink(
$title,