dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove dead code from RCCacheEntryFactory"
[lhc/web/wiklou.git]
/
includes
/
logging
/
ProtectLogFormatter.php
diff --git
a/includes/logging/ProtectLogFormatter.php
b/includes/logging/ProtectLogFormatter.php
index
ba02457
..
6e3b26b
100644
(file)
--- a/
includes/logging/ProtectLogFormatter.php
+++ b/
includes/logging/ProtectLogFormatter.php
@@
-101,7
+101,10
@@
class ProtectLogFormatter extends LogFormatter {
];
// Show change protection link
];
// Show change protection link
- if ( $this->context->getUser()->isAllowed( 'protect' ) ) {
+ if ( !MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $this->context->getUser(), 'protect' )
+ ) {
$links[] = $linkRenderer->makeKnownLink(
$title,
$this->msg( 'protect_change' )->text(),
$links[] = $linkRenderer->makeKnownLink(
$title,
$this->msg( 'protect_change' )->text(),