From d5b36888a3c5263032136742685dfc875979d521 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 30 Jul 2009 17:11:18 +0000 Subject: [PATCH] Follow-up to r54016: deletedcontribs --- includes/specials/SpecialDeletedContributions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 4afa30dafc..53466a9e89 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -30,8 +30,11 @@ class DeletedContribsPager extends IndexPager { list( $index, $userCond ) = $this->getUserCond(); $conds = array_merge( $userCond, $this->getNamespaceCond() ); // Paranoia: avoid brute force searches (bug 17792) - if( !$wgUser->isAllowed( 'suppressrevision' ) ) { - $conds[] = $this->mDb->bitAnd('ar_deleted', Revision::DELETED_USER) . ' = 0'; + if( !$wgUser->isAllowed( 'deleterevision' ) ) { + $conds[] = $this->mDb->bitAnd('ar_deleted',Revision::DELETED_USER) . ' = 0'; + } else if( !$wgUser->isAllowed( 'suppressrevision' ) ) { + $conds[] = $this->mDb->bitAnd('ar_deleted',Revision::SUPPRESSED_USER) . + ' != ' . Revision::SUPPRESSED_USER; } return array( 'tables' => array( 'archive' ), @@ -425,4 +428,4 @@ class DeletedContributionsPage extends SpecialPage { Xml::closeElement( 'form' ); return $f; } -} +} \ No newline at end of file -- 2.20.1