Page MenuHomePhabricator

Add User namespace protection to the API Portal beta site
Closed, ResolvedPublic

Description

To enable the permissions scheme for the API Portal defined in T249834, prevent users in the Users group from editing pages in the User namespace.

To do:

  • Add $wgNamespaceProtection[NS_USER] = [ 'docseditor' ]; to the configuration for api.wikimedia.beta.wmflabs.org
  • Confirm that a user in the group Users cannot edit a user page

Event Timeline

Reedy subscribed.

Can I ask... why?

This seems an awkward limitation to prevent users changing their own user pages

Perhaps a variation of https://meta.wikimedia.org/wiki/Special:AbuseFilter/161 instead? "Prevent standard users from editing others' user pages" - set it so that only users with docseditor can edit other users' user pages (tweak the filter by changing the right checked for on line 3)

I agree that it's awkward. The reasoning is that restricting editing will reduce the amount of patrolling needed to support the site during the initial launch and evaluation period.

If it's an antiabuse mechanism, I'd leave it for the AbuseFilter.

Change 619339 had a related patch set uploaded (by Cicalese; owner: Cicalese):
[operations/mediawiki-config@master] Configured additional settings for API Portal beta wiki

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

Change 619339 merged by jenkins-bot:
[operations/mediawiki-config@master] Configured additional settings for API Portal beta wiki

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

apaskulin updated the task description. (Show Details)

I've tested this and it now works as expected.

Thanks for the feedback, everyone! I'll keep these suggestions and feedback in mind as we move forward with this project. I really appreciate it!