Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | $this->messages['undeleteviewlink'] |
147 | 147 | ); |
148 | 148 | |
149 | | - if( $wgUser->isAllowed('delete') ) { |
| 149 | + if( $wgUser->isAllowed('undelete') ) { |
150 | 150 | $last = $sk->linkKnown( |
151 | 151 | $undelete, |
152 | 152 | $this->messages['diff'], |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | $comment = $sk->revComment( $rev ); |
165 | 165 | $date = htmlspecialchars( $wgLang->timeanddate( $rev->getTimestamp(), true ) ); |
166 | 166 | |
167 | | - if( !$wgUser->isAllowed('delete') || !$rev->userCan(Revision::DELETED_TEXT) ) { |
| 167 | + if( !$wgUser->isAllowed('undelete') || !$rev->userCan(Revision::DELETED_TEXT) ) { |
168 | 168 | $link = $date; // unusable link |
169 | 169 | } else { |
170 | 170 | $link = $sk->linkKnown( |