From: Glaisher Date: Thu, 11 Jun 2015 12:59:33 +0000 (+0500) Subject: Allow users with 'viewsuppressed' to view when limitTitle()d X-Git-Tag: 1.31.0-rc.0~11116^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=519f901c2fb3e6a625b840daab7220212d0866da;p=lhc%2Fweb%2Fwiklou.git Allow users with 'viewsuppressed' to view when limitTitle()d This was probably missed when 'suppressrevision' was split into 'suppressrevision' and 'viewsuppressed'. It was properly separated in limitPerformer() but not in limitTitle(). Bug: T101982 Change-Id: I9c62599124cbb74d2004b416f6e490c231dbd7b2 --- diff --git a/includes/logging/LogPager.php b/includes/logging/LogPager.php index c4ce7b3e9e..598a45f07c 100644 --- a/includes/logging/LogPager.php +++ b/includes/logging/LogPager.php @@ -248,7 +248,7 @@ class LogPager extends ReverseChronologicalPager { $user = $this->getUser(); if ( !$user->isAllowed( 'deletedhistory' ) ) { $this->mConds[] = $db->bitAnd( 'log_deleted', LogPage::DELETED_ACTION ) . ' = 0'; - } elseif ( !$user->isAllowed( 'suppressrevision' ) ) { + } elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) { $this->mConds[] = $db->bitAnd( 'log_deleted', LogPage::SUPPRESSED_ACTION ) . ' != ' . LogPage::SUPPRESSED_ACTION; }