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:
Daimona Eaytoy 2021-01-07 17:24:33 +01:00
parent 827a7b9920
commit 5eee6f6e5d

View file

@ -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;
}