**Author:** `sacolcor`
**Description:**
First pass at a patch to complete this change.
Currently, Title::UserCan() checks the $wgNamespaceProtection to test whether the namespace is protected. Creating a separate Namespace::UserCan() would provide several benefits:
1) It helps to keep all of the namespace related code in one place.
2) Permissions on a namespace can now be tested without requiring the caller to access $wgNamespaceProtection directly.
3) It introduces a 'userCanNamespace' hook, to enable extensions to more easily customize permissions on a namespace level. The standard disclaimers about access restriction not being reliable apply, of course.
--------------------------
**Version**: unspecified
**Severity**: enhancement
//attachment patchNamespaceUserCan.diff ignored as obsolete//