mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 23:44:17 +00:00
Remove use of Title::quickUserCan
Bug: T244927 Change-Id: I179a4faa26b3265d162fcb0d41bd9515fef623e8
This commit is contained in:
parent
0397f71b96
commit
0cae9b7d35
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue