Hide "hideuser" on Special:Block for non-infinite blocks
authorEddie Greiner-Petter <git@eddie-sh.de>
Fri, 19 May 2017 13:49:20 +0000 (15:49 +0200)
committerEddieGP <wikimedia.org@eddie-sh.de>
Wed, 26 Jul 2017 19:28:42 +0000 (19:28 +0000)
commit351a699180b6dc9999afeb1646168146f608da2d
treed26ea8c9ae0f2fd7614cd1261e8485a14495fa61
parente3af1c598b81cfb21de23b3da248f71109ebdd30
Hide "hideuser" on Special:Block for non-infinite blocks

Users with the hideuser right have an extra checkmark on Special:Block
to hide user, however this functionality can only be used on registered
users (not IPs) and only if a block is set to never expire. With this js
enhancement, hide the "hideuser" checkbox and label if the block time is
not set to infinite (either as selected from the dropdown or written
into the "other" input box).

Attribution to meta.wikimedia.org/wiki/User:Margott who uploaded a
draft for this patch on the task a while ago.

Bug: T133036
Change-Id: Ia8c3e25d923e1df57d5afd69e9de3d6f2543f628
includes/GlobalFunctions.php
resources/src/mediawiki.special/mediawiki.special.block.js