Last modified: 2014-08-10 15:26:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66787, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64787 - [Lockdown] Remove restricted namespaces from listings
[Lockdown] Remove restricted namespaces from listings
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
Lockdown (Other open bugs)
master
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nemo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-03 08:40 UTC by Nemo
Modified: 2014-08-10 15:26 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-05-03 08:40:57 UTC
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:
1) given a page, if its namespace is restricted for the current user, restrict it;
2) 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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links