Index: trunk/extensions/AbuseFilter/SpecialAbuseFilter.php |
— | — | @@ -680,7 +680,7 @@ |
681 | 681 | static $canEdit = 'unset'; |
682 | 682 | |
683 | 683 | if ($canEdit == 'unset') { |
684 | | - $canEdit = !count( $errors = $this->getTitle()->getUserPermissionsErrors( 'abusefilter-modify', $wgUser, true, array( 'ns-specialprotected' ) ) ); |
| 684 | + $canEdit = $wgUser->isAllowed( 'abusefilter-modify' ); |
685 | 685 | } |
686 | 686 | |
687 | 687 | return $canEdit; |