X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogFormatter.php;h=b4a682583c28a9bee830ee220efde6a2d50fc3c6;hb=7b4eafda0d986180d20f37f2489b70e8eca00df4;hp=9e63ffee647ebbffc8a6d0baf6540295c64e03db;hpb=02dc5d8685bf9ceccdbcdba75ed3a4c920da0e80;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 9e63ffee64..b4a682583c 100644 --- 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] ) - || $this->context->getUser()->isAllowed( $logRestrictions[$type] ); + || MediaWikiServices::getInstance() + ->getPermissionManager() + ->userHasRight( $this->context->getUser(), $logRestrictions[$type] ); } /**