r54357 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54356‎ | r54357 | r54358 >
Date:12:18, 4 August 2009
Author:aaron
Status:ok
Tags:
Comment:
check 'undelete' for undelete page links
Modified paths:
  • /trunk/phase3/includes/specials/SpecialDeletedContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php
@@ -145,7 +145,7 @@
146146 $this->messages['undeleteviewlink']
147147 );
148148
149 - if( $wgUser->isAllowed('delete') ) {
 149+ if( $wgUser->isAllowed('undelete') ) {
150150 $last = $sk->linkKnown(
151151 $undelete,
152152 $this->messages['diff'],
@@ -163,7 +163,7 @@
164164 $comment = $sk->revComment( $rev );
165165 $date = htmlspecialchars( $wgLang->timeanddate( $rev->getTimestamp(), true ) );
166166
167 - if( !$wgUser->isAllowed('delete') || !$rev->userCan(Revision::DELETED_TEXT) ) {
 167+ if( !$wgUser->isAllowed('undelete') || !$rev->userCan(Revision::DELETED_TEXT) ) {
168168 $link = $date; // unusable link
169169 } else {
170170 $link = $sk->linkKnown(

Status & tagging log