Compare officewiki on old Vector with officewiki on new Vector (while not logged in). The first has a "Log in" link, the second has a "Create account" link (which of course does not work for a private wiki).
Expected behavior:
- Create account link is not displayed
- Log in link stays within the user menu
Developer notes
The account creation link is unconditionally added.
It should check if the menu item exists.
Replicate with:
$wgHooks['SkinTemplateNavigation::Universal'][] = function ( $skinTemplate, &$links ) { unset( $links['user-menu']['createaccount'] ); };
The use case of extensions calling core or legacy hooks to unset the createaccount link in the personal toolbar is not being considered at this time. See T288428#7303233
Acceptance criteria
- Private wikis do not show Create account link for anon users
- Public wikis do show Create account link for anon users
QA steps
- In LocalSettings.php, add the following config to test whether Create account link shows in the personal menu:
$wgGroupPermissions['*']['createaccount'] = false;
- Without above config, the Create account link should be visible.
- With above config, the Create account link should not be visible.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T288428#7324878 |
2 | ✅ | T288428#7324878 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ⬜ | T288428#7324894 |
2 | ✅ | T288428#7324894 |