Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | } |
241 | 241 | $fields['abusefilter-edit-flags'] = $flags; |
242 | 242 | |
243 | | - if ($filter != 'new') { |
| 243 | + if ( $filter != 'new' && $wgUser->isAllowed( 'abusefilter-revert' ) ) { |
244 | 244 | $tools = ''; |
245 | 245 | $tools .= $sk->link( $this->getTitle( 'revert/'.$filter ), wfMsg( 'abusefilter-edit-revert' ) ); |
246 | 246 | $fields['abusefilter-edit-tools'] = $tools; |