Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -46,7 +46,8 @@ |
47 | 47 | |
48 | 48 | // Check for restricted actions |
49 | 49 | global $wgAbuseFilterRestrictedActions; |
50 | | - if ( count( array_intersect( $wgAbuseFilterRestrictedActions, array_keys( array_filter( $actions ) ) ) ) ) { |
| 50 | + if ( count( array_intersect( $wgAbuseFilterRestrictedActions, array_keys( array_filter( $actions ) ) ) ) && |
| 51 | + !$wgUser->isAllowed( 'abusefilter-modify-restricted' ) ) { |
51 | 52 | $wgOut->addHTML( $this->buildFilterEditor( wfMsgExt( 'abusefilter-edit-restricted', 'parse' ), $this->mFilter, $history_id ) ); |
52 | 53 | return; |
53 | 54 | } |
Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php |
— | — | @@ -53,6 +53,7 @@ |
54 | 54 | 'right-abusefilter-log' => 'View the abuse log', |
55 | 55 | 'right-abusefilter-log-detail' => 'View detailed abuse log entries', |
56 | 56 | 'right-abusefilter-private' => 'View private data in the abuse log', |
| 57 | + 'right-abusefilter-modify-restricted' => 'Modify filters with restricted actions', |
57 | 58 | |
58 | 59 | // Abuse Log |
59 | 60 | 'abusefilter-log' => 'Abuse filter log', |