mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-13 17:27:20 +00:00
Merge "(bug 37335) Let people with abusefilter-view-private see diffs for changes to private abusefilters."
This commit is contained in:
commit
2992a7c7fa
|
@ -36,7 +36,8 @@ class AbuseFilterViewDiff extends AbuseFilterView {
|
|||
$this->mFilter = $this->mParams[1];
|
||||
|
||||
if ( AbuseFilter::filterHidden( $this->mFilter ) &&
|
||||
!$this->getUser()->isAllowed( 'abusefilter-modify' ) ) {
|
||||
!$this->getUser()->isAllowed( 'abusefilter-modify' ) &&
|
||||
!$this->getUser()->isAllowed( 'abusefilter-view-private' ) ) {
|
||||
$this->getOutput()->addWikiMsg( 'abusefilter-history-error-hidden' );
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue