Merge "Fix User::isAllowedAny() calls"

This commit is contained in:
jenkins-bot 2016-08-22 23:48:25 +00:00 committed by Gerrit Code Review
commit fa68be8148
2 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ class AbuseFilterViewDiff extends AbuseFilterView {
$this->mFilter = $this->mParams[1];
if ( AbuseFilter::filterHidden( $this->mFilter )
&& !$this->getUser()->isAllowedAny( array( 'abusefilter-modify', 'abusefilter-view-private' ) )
&& !$this->getUser()->isAllowedAny( 'abusefilter-modify', 'abusefilter-view-private' )
) {
$this->getOutput()->addWikiMsg( 'abusefilter-history-error-hidden' );
return false;

View file

@ -18,7 +18,7 @@ class AbuseFilterViewHistory extends AbuseFilterView {
# Check perms. abusefilter-modify is a superset of abusefilter-view-private
if ( $filter && AbuseFilter::filterHidden( $filter )
&& !$this->getUser()->isAllowedAny( array( 'abusefilter-modify', 'abusefilter-view-private' ) )
&& !$this->getUser()->isAllowedAny( 'abusefilter-modify', 'abusefilter-view-private' )
) {
$out->addWikiMsg( 'abusefilter-history-error-hidden' );
return;
@ -235,7 +235,7 @@ class AbuseFilterHistoryPager extends TablePager {
}
if ( !$this->getUser()->isAllowedAny(
array( 'abusefilter-modify', 'abusefilter-view-private' ) )
'abusefilter-modify', 'abusefilter-view-private' )
) {
// Hide data the user can't see.
$info['conds']['af_hidden'] = 0;