Page MenuHomePhabricator

"The action you have requested is limited to users in one of the groups: $1." user warning
Closed, ResolvedPublic

Description

  1. In any browser paste the following link: https://ca.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&to=ca
  2. The user will see somewhat incomprehensible message:

Screen Shot 2017-11-08 at 3.48.51 PM.png (473×1 px, 52 KB)

Event Timeline

From mw core

	"badaccess-groups": "The action you have requested is limited to users in {{PLURAL:$2|the group|one of the groups}}: $1.",

And then in ContentTranslation...

				if ( $campaign ) {
					// Show login page if the URL has campaign parameter
					$out->showPermissionsErrorPage(
						[ [ 'badaccess-groups' ] ],
						'edit'
					);
					return;
				}

$1 needs to the list of groups, $2 needs to be the number of groups

Change 390980 had a related patch set uploaded (by Santhosh; owner: Santhosh):
[mediawiki/extensions/ContentTranslation@master] For invalid or missing campaign show error about enable beta feature

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

contributionsmenu entry point should only be accessible when CX is enabled, hence it is not listed in the campaigns.

Change 390980 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] For invalid or missing campaign show error about enable beta feature

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

Checked in testwiki (wmf.8) - the user warning about ContentTranslation is displayed:

Screen Shot 2017-11-14 at 2.27.01 PM.png (380×774 px, 51 KB)