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
Remove Revision::getRevisionText from ApiQueryDeletedrevs
[lhc/web/wiklou.git]
/
includes
/
logging
/
LogFormatter.php
diff --git
a/includes/logging/LogFormatter.php
b/includes/logging/LogFormatter.php
index
9e63ffe
..
b4a6825
100644
(file)
--- a/
includes/logging/LogFormatter.php
+++ b/
includes/logging/LogFormatter.php
@@
-163,7
+163,9
@@
class LogFormatter {
$logRestrictions = $this->context->getConfig()->get( 'LogRestrictions' );
$type = $this->entry->getType();
return !isset( $logRestrictions[$type] )
$logRestrictions = $this->context->getConfig()->get( 'LogRestrictions' );
$type = $this->entry->getType();
return !isset( $logRestrictions[$type] )
- || $this->context->getUser()->isAllowed( $logRestrictions[$type] );
+ || MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $this->context->getUser(), $logRestrictions[$type] );
}
/**
}
/**