Patches on https://www.mediawiki.org/wiki/Extension:Lockdown/hiding_pages and talk page should finally land the actual code.
In principle it's easy, there are just two concepts:
- given a page, if its namespace is restricted for the current user, restrict it;
- given a list of namespaces, remove those restricted for the current user.
Two functions which need to be called on a dozen places in core.
Daniel, I plan to submit two patches against core to add AbortAccessNamespace and <something> as hooks and then two in Lockdown with those two functions attached to the two hooks. Of course there are semi-infinite complications but it's easier to discuss with some code on gerrit.
Version: master
Severity: normal