mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Don't show checkbox for hiding AbuseLog entries when showing details
The checkbox should only appear on Special:AbuseLog, not when deleting items (checked with $this->hideEntries), AND not when viewing details of a single entry, which is check with $isListItem. Change-Id: Id2db07641bf98992b4838e4e7439ac3ee4b1ad8e
This commit is contained in:
parent
827a7b9920
commit
5eee6f6e5d
|
@ -283,7 +283,7 @@ class AbuseLogPager extends ReverseChronologicalPager {
|
|||
$this->msg( 'abusefilter-log-hidden-implicit' )->parse();
|
||||
}
|
||||
|
||||
if ( !$this->hideEntries && $this->afPermissionManager->canHideAbuseLog( $user ) ) {
|
||||
if ( $isListItem && !$this->hideEntries && $this->afPermissionManager->canHideAbuseLog( $user ) ) {
|
||||
$description = Xml::check( 'hideids[' . $row->afl_id . ']' ) . $description;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue