r48622 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48621‎ | r48622 | r48623 >
Date:04:13, 20 March 2009
Author:aaron
Status:resolved (Comments)
Tags:
Comment:
Visibility tweak on ar_deleted per bug 17792
Modified paths:
  • /trunk/phase3/includes/specials/SpecialDeletedContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php
@@ -26,9 +26,13 @@
2727 }
2828
2929 function getQueryInfo() {
 30+ global $wgUser;
3031 list( $index, $userCond ) = $this->getUserCond();
3132 $conds = array_merge( $userCond, $this->getNamespaceCond() );
32 -
 33+ // Paranoia: avoid brute force searches (bug 17792)
 34+ if( !$wgUser->isAllowed( 'hiderevision' ) ) {
 35+ $conds[] = 'ar_deleted & ' . Revision::DELETED_USER . ' = 0';
 36+ }
3337 return array(
3438 'tables' => array( 'archive' ),
3539 'fields' => array(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r48049(bug 17792) Hide DELETED_USER itemsaaron06:00, 5 March 2009

Comments

#Comment by Aaron Schulz (talk | contribs)   04:25, 20 March 2009

Typo fixed in r48623

Status & tagging log