Page MenuHomePhabricator

Wrong error message when trying to view/restore JavaScript page (sysop, not interface admin)
Closed, DuplicatePublic

Description

Steps to reproduce:

  1. Be a sysop, but not an interface admin
  2. Click on a red link to a JavaScript page (e.g. a MediaWiki: page or a user page)
  3. Click on the provided "view/restore" link (arriving at e.g. Special:Restore/Mediawiki:...js)

Actual result:

  1. The Special:Restore/... page has the error message "... The action you have requested is limited to users in the group: Administrators."

Expected result:

One of the following, where I'd prefer the first.

  • A) Sysops get a "view" link instead of "view/restore" for pages they cannot restore, and B) they can show the Special:Restore page, as well as view the original source code, but they cannot restore the page.
  • A) Sysops don't get the "view/restore" link for pages they cannot restore, and B) the error message mentions "Interface administrators", not "Administrators".