Page MenuHomePhabricator

Limit story creation to logged in users
Closed, ResolvedPublic

Description

Pending final product decision.

This can be done by protecting the Story namespace and giving edit right to the user group.

Some permission checks have to be added to prevent showing create and edit links to anons.

We can configure the StoryBuilder special page so that it requires used to be logged in. If they are not, they will be redirected to the login page with a custom error message where we can explain why Wikistories is like that.

Event Timeline

SBisson renamed this task from Limit story creation to registered users to Limit story creation to logged in users.May 12 2022, 2:35 PM
SBisson triaged this task as Medium priority.
SBisson moved this task from Definition to Code Review on the Inuka-Team (Kanban) board.

Change 791417 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/Wikistories@master] Restrict story creation to logged in users

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

Change 791417 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Restrict story creation to logged in users

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

Change 792618 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/Wikistories@master] Restrict story creation to logged in users

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

Change 792618 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Restrict story creation to logged in users

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

Testing

  1. When not logged in, clicking on the CTA to create a wikistory prompts the user to log in.

image.png (856×686 px, 100 KB)

  1. Upon successfully logging in, the user is redirected to the image search screen.
  1. If the user creates an account, there is a link to continue to the image search screen.

image.png (698×1 px, 155 KB)

Nice work!