Steps to replicate the issue (include links if applicable):
- Edit any article with a temp account in Local
- Block a user that has an Admin account
- Go to View History or Diff or I'm sure any other pages that would have the Show IP button
What happens?:
The Show IP button is visible even when the user is blocked but can't reveal the IP address on the current date. If you created older temp account edits from a few days ago, if you are blocked, you can still reveal the IP address.
What should have happened instead?:
Show IP button should not be visible when a user is blocked
Other information (browser name/version, screenshots, etc.):
This is best tested along with {T326415: Add (show IP) buttons next to temporary account user name links}: Add (show IP) buttons next to temporary account user name links, which adds the buttons.
It should be tested locally, since it requires $wgAutoCreateTempUser['enabled'] = true; (only available on Beta) and the CheckUser extension (not available on Beta).
OS: macOS 13.0
Browsers: Chrome 109 and FireFox 109
Environment: Local
Admin users that are blocked