r46461 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46460‎ | r46461 | r46462 >
Date:19:12, 28 January 2009
Author:werdna
Status:deferred
Tags:
Comment:
Require 'abusefilter-revert' right to display the 'revert' button on the edit page.
Modified paths:
  • /trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php
@@ -239,7 +239,7 @@
240240 }
241241 $fields['abusefilter-edit-flags'] = $flags;
242242
243 - if ($filter != 'new') {
 243+ if ( $filter != 'new' && $wgUser->isAllowed( 'abusefilter-revert' ) ) {
244244 $tools = '';
245245 $tools .= $sk->link( $this->getTitle( 'revert/'.$filter ), wfMsg( 'abusefilter-edit-revert' ) );
246246 $fields['abusefilter-edit-tools'] = $tools;

Status & tagging log