$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] );
}
/**
/**
* Shortcut for wfMessage which honors local context.
* @param string $key
+ * @param mixed ...$params
* @return Message
*/
- protected function msg( $key ) {
- return $this->context->msg( $key );
+ protected function msg( $key, ...$params ) {
+ return $this->context->msg( $key, ...$params );
}
/**