From: Aaron Schulz Date: Sat, 10 Oct 2009 18:29:38 +0000 (+0000) Subject: bug 21076: b/c, make 'undelete' work without 'deletedtext' X-Git-Tag: 1.31.0-rc.0~39310 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=83b29ac660bf8a6187a0f86d3c0d53f7b8ced46e;p=lhc%2Fweb%2Fwiklou.git bug 21076: b/c, make 'undelete' work without 'deletedtext' --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 6f58a46b9a..fd9801b22c 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -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' ) ) {