From c682e060869e884b86f3348656da7360c30c30c2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 26 Apr 2008 23:33:27 +0000 Subject: [PATCH] Make suppression require hiderevision --- includes/Article.php | 4 ++-- includes/FileDeleteForm.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index d458d94723..59d86d88f9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1992,7 +1992,7 @@ class Article { $reason = $this->DeleteReason; } # Flag to hide all contents of the archived revisions - $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('deleterevision'); + $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('hiderevision'); # This code desperately needs to be totally rewritten @@ -2143,7 +2143,7 @@ class Article { $wgOut->setRobotpolicy( 'noindex,nofollow' ); $wgOut->addWikiMsg( 'confirmdeletetext' ); - if( $wgUser->isAllowed( 'deleterevision' ) ) { + if( $wgUser->isAllowed( 'hiderevision' ) ) { $suppress = ""; $suppress .= Xml::checkLabel( wfMsg( 'revdelete-suppress' ), 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '2' ) ); $suppress .= ""; diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index f63b1c96b9..cbecaba486 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -45,7 +45,7 @@ class FileDeleteForm { $this->oldimage = $wgRequest->getText( 'oldimage', false ); $token = $wgRequest->getText( 'wpEditToken' ); # Flag to hide all contents of the archived revisions - $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('deleterevision'); + $suppress = $wgRequest->getVal( 'wpSuppress' ) && $wgUser->isAllowed('hiderevision'); if( $this->oldimage && !self::isValidOldSpec($this->oldimage) ) { $wgOut->showUnexpectedValueError( 'oldimage', htmlspecialchars( $this->oldimage ) ); @@ -126,7 +126,7 @@ class FileDeleteForm { global $wgOut, $wgUser, $wgRequest, $wgContLang; $align = $wgContLang->isRtl() ? 'left' : 'right'; - if( $wgUser->isAllowed( 'deleterevision' ) ) { + if( $wgUser->isAllowed( 'hiderevision' ) ) { $suppress = ""; $suppress .= Xml::checkLabel( wfMsg( 'revdelete-suppress' ), 'wpSuppress', 'wpSuppress', false, array( 'tabindex' => '2' ) ); $suppress .= ""; -- 2.20.1