When doing action=delete on a page, MediaWiki is checking if the page has a large revision count, and displaying a warning to the user telling it can't delete the page because it has many revisions, but that message is being displayed even if the user has no delete permission (for example, being a not logged-in user or a normal user), which doesn't make sense.
Steps to reproduce:
Go to https://en.wikipedia.org/wiki/Special:MostRevisions , pick one page, go to the page history and change action=history by action=delete on the URL
Be sure to not be an admin, or simply access it while not logged in.
Expected results:
You get a message like "The action you have requested is limited to users in the group: Administrators."
Actual results:
In addition to the "The action you have requested is limited to users in the group: Administrators." message, you get a "This page's edit history may exceed 5,000 revisions. To prevent accidental disruption, its deletion is restricted to stewards. Please contact one for assistance. For past actions at this page, see its deletion log."
Version: 1.24rc
Severity: trivial
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=69556