Page MenuHomePhabricator

On protected Flow pages, remove/replace action links, and/or inform users without sufficient rights to use them
Closed, ResolvedPublic

Description

On a (semi/fully) protected Flow page, users without requisite permissions to edit the content, still see the buttons for "Reply", the form for "Start a new topic", and the action-menu items for "edit", "edit title", "summarize", "edit summary", "resolve", or "hide".

Currently, for users without the requisite rights, trying to edit content in a protected page gives an Invalid token error when we save the changes. (E.g. at https://test.wikipedia.org/wiki/User_talk:Quiddity_(WMF)/protected_test_page )

[For reference: In the wikitext contentmodel pages, this is done by removing the section-edit links, and replacing the edit-tab(s) with "View source". The related idea for Flow is T62465: Flow: provide View Source (showing the wikitext) of someone's post.]

Flow should do one or more of these:

  • Remove the "Reply" links
  • Replace the "Edit [...]" links with a "view source" instead
  • Pop up a message when a user initially interacts with one of those. <---- probably this one.

The message itself would ideally be re-used from MediaWiki:Protectedpagetext - however, that message can vary to a massive extent: from as big as 1 screen to as small as 1 sentence (e.g. Enwiki vs Mediawiki.org in screenshot)

See also:

Details

Related Gerrit Patches:

Event Timeline

Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald Transcript

Change 279568 had a related patch set uploaded (by Mattflaschen):
Disable submit buttons if we know the user can't edit

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

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptApr 19 2016, 4:11 PM

We typically hide the content of the sidebar when collapsed.

Change 279568 merged by jenkins-bot:
Disable submit buttons if we know the user can't edit

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

Checked in betalabs together with T108762: Notify users who are editing protected flow content (with some suggestions and screenshots).

Edit and Summarize links are not displayed, and users get informed why edit actions cannot be carried out.

It'd be better to indicate the protected status of a page in a more visible but unobtrusive way, e.g. as enwiki or as Mobile apps does.

jmatazzoni closed this task as Resolved.May 31 2016, 3:48 PM