bug 21076: b/c, make 'undelete' work without 'deletedtext'
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 10 Oct 2009 18:29:38 +0000 (18:29 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 10 Oct 2009 18:29:38 +0000 (18:29 +0000)
includes/specials/SpecialUndelete.php

index 6f58a46..fd9801b 100644 (file)
@@ -576,7 +576,7 @@ class UndeleteForm {
                if( $par != "" ) {
                        $this->mTarget = $par;
                }
-               if ( $wgUser->isAllowed( 'deletedtext' ) && $wgUser->isAllowed( 'undelete' ) && !$wgUser->isBlocked() ) {
+               if ( $wgUser->isAllowed( 'undelete' ) && !$wgUser->isBlocked() ) {
                        $this->mAllowed = true; // user can restore
                        $this->mCanView = true; // user can view content
                } elseif ( $wgUser->isAllowed( 'deletedtext' ) ) {