Merge "(bug 37335) Let people with abusefilter-view-private see diffs for changes to private abusefilters."

This commit is contained in:
Aaron Schulz 2012-06-14 17:41:58 +00:00 committed by Gerrit Code Review
commit 2992a7c7fa

View file

@ -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;
}