Merge "Hardcode 'abusefilter-view' right when adding CU log entry"

This commit is contained in:
jenkins-bot 2020-09-15 11:16:33 +00:00 committed by Gerrit Code Review
commit 001d8b92fb

View file

@ -1261,6 +1261,8 @@ class AbuseFilterRunner {
if ( ExtensionRegistry::getInstance()->isLoaded( 'CheckUser' )
&& strpos( $wgAbuseFilterNotifications, 'rc' ) === false
) {
global $wgCheckUserLogAdditionalRights;
$wgCheckUserLogAdditionalRights[] = 'abusefilter-view';
$rc = $entry->getRecentChange();
CheckUserHooks::updateCheckUserData( $rc );
}