Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 6b10ec4

Browse files
committed
Hide the report link for those who can handle them
1 parent ec1020d commit 6b10ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Report.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function onLoadExtensionSchemaUpdates( $updater ) {
99
}
1010

1111
public static function insertReportLink( $rev, &$links, $oldRev, $user ) {
12-
if ( $user->isAllowed( 'report' ) && !$user->isBlocked() ) {
12+
if ( $user->isAllowed( 'report' ) && !$user->isBlocked() && !$user->isAllowed('handle-reports') ) {
1313
$links[] = self::generateReportElement( $rev->getID() );
1414
}
1515
}

0 commit comments

Comments
 (0)