From: Rotem Liss Date: Wed, 7 May 2008 19:17:19 +0000 (+0000) Subject: This should probably be restricted to users with the 'hiderevision' right, as the... X-Git-Tag: 1.31.0-rc.0~47838 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=1afa442045270b84dde95bae4e107a18586ec565;p=lhc%2Fweb%2Fwiklou.git This should probably be restricted to users with the 'hiderevision' right, as the 'suppress' right is only about viewing the suppression log and hidden users. --- diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 706dab309e..c0e2e0c20e 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -587,7 +587,7 @@ class UndeleteForm { $this->mPreview = $request->getCheck( 'preview' ) && $posted; $this->mDiff = $request->getCheck( 'diff' ); $this->mComment = $request->getText( 'wpComment' ); - $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $wgUser->isAllowed( 'suppress' ); + $this->mUnsuppress = $request->getVal( 'wpUnsuppress' ) && $wgUser->isAllowed( 'hiderevision' ); if( $par != "" ) { $this->mTarget = $par; @@ -966,7 +966,7 @@ class UndeleteForm { if( $this->mAllowed && ( $haveRevisions || $haveFiles ) ) { # Format the user-visible controls (comment field, submission button) # in a nice little table - if( $wgUser->isAllowed( 'suppress' ) ) { + if( $wgUser->isAllowed( 'hiderevision' ) ) { $unsuppressBox = "