Steps to reproduce:
- Be a sysop, but not an interface admin
- Click on a red link to a JavaScript page (e.g. a MediaWiki: page or a user page)
- Click on the provided "view/restore" link (arriving at e.g. Special:Restore/Mediawiki:...js)
Actual result:
- 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".