Page MenuHomePhabricator

Prevent logged out user from editing input / output in Edit function
Closed, ResolvedPublic

Description

As an user I would like to be able to edit an existing function input / Output when my user is logged in, and be prevented to complete this action if the user is logged out.

NOTE: This story will be updated later in the phase to work on a specific role, and the ability for it to work on "logged in user" will be changed to read the correct user rights.

To do:

  • Add an action in the Roles Vuex module called "canEditFunction" that return true is user is logged in (use the mw.user object)
  • Add a todo that links to https://phabricator.wikimedia.org/T301667 in the method
  • Ensure the Edit function UI shows the required tooltip and disable the input fields depending from user roels

Event Timeline

Change 832254 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Only allow function editing when logged in

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

Change 832531 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] Only allow function editing when logged in

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

Change 832531 abandoned by Jkieserman:

[mediawiki/extensions/WikiLambda@master] Only allow function editing when logged in

Reason:

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

Change 832254 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Only allow function editing when logged in

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