From: Aaron Schulz Date: Fri, 20 Mar 2009 04:13:08 +0000 (+0000) Subject: Visibility tweak on ar_deleted per bug 17792 X-Git-Tag: 1.31.0-rc.0~42440 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=751e69081ffc35e7a68c3de66d1242bb63184da2;p=lhc%2Fweb%2Fwiklou.git Visibility tweak on ar_deleted per bug 17792 --- diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index f8e5392a03..ce80ede8b9 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -26,9 +26,13 @@ class DeletedContribsPager extends IndexPager { } function getQueryInfo() { + global $wgUser; list( $index, $userCond ) = $this->getUserCond(); $conds = array_merge( $userCond, $this->getNamespaceCond() ); - + // Paranoia: avoid brute force searches (bug 17792) + if( !$wgUser->isAllowed( 'hiderevision' ) ) { + $conds[] = 'ar_deleted & ' . Revision::DELETED_USER . ' = 0'; + } return array( 'tables' => array( 'archive' ), 'fields' => array(