mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 23:40:19 +00:00
Merge "Users able to view private logs should be able to search for them."
This commit is contained in:
commit
61bd427108
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue