Message: 3 Date: Sat, 23 Jan 2010 13:33:20 +0100 From: Sylvain Leroux sylvain@chicoree.fr Subject: [Wikitech-l] Managing group of pages in white-list To: Wikimedia developers wikitech-l@lists.wikimedia.org Message-ID: 4B5AEC90.9080302@chicoree.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
For a private wiki, I had the request to add groups of pages to the white-list. Contributors will regularly add (and possibly delete) pages in those groups. So manually editing $wgWhitelistRead appears to be a maintenance nightmare.
So, is there a way to add regexp or namespace (or any other "collection" of pages) in $wgWhitelistRead?
If not (as I think), is there a hook I could use to patch the white-list validation?
Thanks in advance for your answers, Sylvain Leroux
-- sylvain@chicoree.fr http://www.chicoree.fr
I was involved with a wiki that had similar needs. I made a small little extension to whitelist a namespace - http://www.mediawiki.org/wiki/Extension:Whitelist_Namespaces Perhaps it might be useful to you.
Cheers, Bawolff
bawolff a écrit :
I was involved with a wiki that had similar needs. I made a small little extension to whitelist a namespace - http://www.mediawiki.org/wiki/Extension:Whitelist_Namespaces Perhaps it might be useful to you.
Cheers, Bawolff
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Thanks bawolff,
That /almost/ does the trick. But something a little bit more complex was needed. So I wrote http://www.mediawiki.org/wiki/Extension:Whitelist_Regex.
It adds an extra filtering pass to only whitelist those pages that match a given regular expression.
I add the {{Page security extension disclaimer}} template on top of the description page. But I don't think it adds more security issues that the "standard" gwWhiteListRead. Anyway, feel free to tell if I'm wrong. Or if there is any problem, remark, suggestion about this extension!
Best regards, Sylvain
wikitech-l@lists.wikimedia.org