Page MenuHomePhabricator

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


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 )

[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 in screenshot)

H8B1J4D.png (918×1 px, 381 KB)

See also:

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

We typically hide the content of the sidebar when collapsed.

Screen Shot 2016-05-10 at 14.50.00.png (471×295 px, 21 KB)

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

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.