Merge "Users able to view private logs should be able to search for them."

This commit is contained in:
Werdna 2012-07-17 23:03:23 +00:00 committed by Gerrit Code Review
commit 61bd427108

View file

@ -208,7 +208,10 @@ class SpecialAbuseLog extends SpecialPage {
if ( $this->mSearchFilter ) {
// if the filter is hidden, users who can't view private filters should not be able to find log entries generated by it
if ( !AbuseFilter::filterHidden( $this->mSearchFilter ) || AbuseFilterView::canViewPrivate() ) {
if ( !AbuseFilter::filterHidden( $this->mSearchFilter )
|| AbuseFilterView::canViewPrivate()
|| $this->getUser()->isAllowed( 'abusefilter-log-private' )
) {
$conds['afl_filter'] = $this->mSearchFilter;
}
}