From: Brion Vibber Date: Wed, 7 Oct 2009 18:06:21 +0000 (+0000) Subject: Use 'deleterevision', not 'deletedhistory' right to control access to hide/show revs... X-Git-Tag: 1.31.0-rc.0~39358 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=fa590ffe326d919ae28c4222c7f1afc54fdfd391;p=lhc%2Fweb%2Fwiklou.git 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. :) --- 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,