Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -239,7 +239,9 @@ |
240 | 240 | $wgOut->setSubtitle( wfMsg( 'abusefilter-edit-subtitle', $filter, $history_id ) ); |
241 | 241 | |
242 | 242 | // Hide hidden filters. |
243 | | - if ( isset($row->af_hidden) && $row->af_hidden && !$this->canViewPrivate() ) { |
| 243 | + if ( ( (isset($row->af_hidden) && $row->af_hidden) || |
| 244 | + AbuseFilter::filterHidden( $filter ) ) |
| 245 | + && !$this->canViewPrivate() ) { |
244 | 246 | return wfMsg( 'abusefilter-edit-denied' ); |
245 | 247 | } |
246 | 248 | |