From: Aaron Schulz Date: Tue, 4 Aug 2009 12:18:44 +0000 (+0000) Subject: check 'undelete' for undelete page links X-Git-Tag: 1.31.0-rc.0~40515 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22statistiques_visites%22%2C%22%22%29%20.%20%22?a=commitdiff_plain;h=55669ae0ccc26611c8c0dd8c7f0fb9d3845cdae7;p=lhc%2Fweb%2Fwiklou.git check 'undelete' for undelete page links --- diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 9cc73c218b..3e1f7bc240 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -145,7 +145,7 @@ class DeletedContribsPager extends IndexPager { $this->messages['undeleteviewlink'] ); - if( $wgUser->isAllowed('delete') ) { + if( $wgUser->isAllowed('undelete') ) { $last = $sk->linkKnown( $undelete, $this->messages['diff'], @@ -163,7 +163,7 @@ class DeletedContribsPager extends IndexPager { $comment = $sk->revComment( $rev ); $date = htmlspecialchars( $wgLang->timeanddate( $rev->getTimestamp(), true ) ); - if( !$wgUser->isAllowed('delete') || !$rev->userCan(Revision::DELETED_TEXT) ) { + if( !$wgUser->isAllowed('undelete') || !$rev->userCan(Revision::DELETED_TEXT) ) { $link = $date; // unusable link } else { $link = $sk->linkKnown(