Background
A soft block against an IP address blocks users from the IP who are not logged in, but does not block users from that IP who are logged in.
Following T343714, soft blocks do block temporary users.
Global blocks are blocks that block an IP address from every wiki. These can also be soft blocks.
Global soft blocks should block temporary users, similarly to local (single-wiki) soft blocks.
Testing steps
- Set the following config in LocalSettings.php:
$wgGroupPermissions['sysop']['globalblock'] = true; $wgAutoCreateTempUser['enabled'] = true;
- Log out, and edit a page. This will create a temporary user.
- In a private tab (i.e. preserving your temporary user's session), log in as an admin/sysop
- Go to Special:GlobalBlock
- Block your local IP address, checking "Globally block anonymous users only", e.g.:
- Log out
- As the temporary user, attempt to edit a page again
Before this task: The temporary user is allowed to edit (because the IP block does not apply)
After this task: The temporary user is not allowed to edit, and sees a notice about the global block, e.g.: