Article.php returns noarticletext without checking
$wgNamespaceProtection.
This causes the user to see:
"There is currently no text in this page, you can search for this page
title in other pages _or edit this page_."
However, when he clicks that very "edit this page". He is told:
You do not have permission to edit this page, for the following reason:
You do not have permission to edit pages in the ... namespace.
"Bait and switch."
To reproduce, set e.g., $wgNamespaceProtection[NS_...]='*';
and visit some nonexistent page in that namespace.
Version: 1.16.x
Severity: normal