Page MenuHomePhabricator

Only show ListToggle if user has rights to lock or block on Special:CheckUser 'Get users'
Closed, ResolvedPublic1 Estimated Story Points

Description

Discovered in the QA of T329493.

I found a few issues which I don't think are urgent:

  • When a user does not have rights to see the block form and does not see checkboxes next to usernames/IPs, they still see "Select: All, None, Invert". Clicking any of the options does not appear to do anything.

Using Special:Log as an example, the ListToggle is not displayed if the user does not have the rights to suppress log entries (and therefore have a button to press). As there is no block form or checkboxes, it means that these toggle links will do nothing and can safely be not included.

Event Timeline

Dreamy_Jazz set the point value for this task to 1.

Change #1098526 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Hide 'Get users' block buttons if there are no results

https://gerrit.wikimedia.org/r/1098526

This isn't urgent and can be left for a while in 'Needs Review'. Just wanted to change tasks temporarily.

Change #1098526 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Hide 'Get users' block buttons if there are no results

https://gerrit.wikimedia.org/r/1098526

Viewing CheckUser with Admin rights:

checkuser_get_user_with_block.png (522×821 px, 57 KB)

Viewing CheckUser without Admin rights:

checkuser_get_user_without_block.png (346×1 px, 41 KB)

Test environment: local docker CheckUser 2.5 (d37a859) 07:30, 10 January 2025.