From a4b2e8f98ab0ba6e52a6a3fa4c6b715add7f33c3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 22 Jul 2012 21:03:43 +0200 Subject: [PATCH] Fix missing occurence change in I6b69919a (747e89e). The line above changed in that revision, but not this one, so I highly suspect that this occurence of deleterevision should have been changed to deletelogentry. Change-Id: Ief4ca9acf08bccc8ff064cea5795a2dbeae44d19 --- includes/logging/LogEventsList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index d13591c5e1..61cba5763f 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -496,7 +496,7 @@ class LogEventsList extends ContextSource { // Don't show useless checkbox to people who cannot hide log entries if( $user->isAllowed( 'deletedhistory' ) ) { if( $row->log_deleted || $user->isAllowed( 'deletelogentry' ) ) { - $canHide = $user->isAllowed( 'deleterevision' ); + $canHide = $user->isAllowed( 'deletelogentry' ); if ( $this->flags & self::USE_REVDEL_CHECKBOXES ) { // Show checkboxes instead of links. if ( !self::userCan( $row, LogPage::DELETED_RESTRICTED, $user ) ) { // If event was hidden from sysops $del = Xml::check( 'deleterevisions', false, array( 'disabled' => 'disabled' ) ); -- 2.20.1