From fa590ffe326d919ae28c4222c7f1afc54fdfd391 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 7 Oct 2009 18:06:21 +0000 Subject: [PATCH] Use 'deleterevision', not 'deletedhistory' right to control access to hide/show revs from PageHistory... having a button we can't use ain't too helpful. :) --- includes/HistoryPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/HistoryPage.php b/includes/HistoryPage.php index 0e448e8ec6..8c09e1446b 100644 --- a/includes/HistoryPage.php +++ b/includes/HistoryPage.php @@ -352,7 +352,7 @@ class HistoryPager extends ReverseChronologicalPager { $s .= Xml::hidden( 'action', 'historysubmit' ) . "\n"; $this->buttons = '
'; - if( $wgUser->isAllowed('deletedhistory') ) { + if( $wgUser->isAllowed('deleterevision') ) { $float = $wgContLang->alignEnd(); # Note bug #20966,