[Mediawiki-l] $wgNamespaceProtection

Frederich, Eric P21322 eric.frederich at siemens.com
Wed Apr 4 21:47:42 UTC 2007


I finally got a test environment set up so I can try out different
methods for access control.

The first one I wanted to try was suggested by Platonides.

I took a look at the diffs at
http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=19110 and
applied them manually to included/Title.php and
includes/DefaultSettings.php.

This is as far as I got.
I guess since it isn't included in the default download of MediaWiki
there isn't much talk about using it out there.
Could someone explain to me how I would use this to restrict editing of
pages in "namespace x" to users in "group y"?

Thanks,
~Eric

Relevant quotes from a previous thread "access controls in 1.9.3" below

Platonides wrote:

>Frederik Dohr wrote:
>>> If you only want to restrict by namespace, it's much easier. You
could 
>>> code an an extension for it or even use the builtin 
>>> $wgNamespaceProtection (including everything but Talk namespace).
>> 
>> Hmm, the manual page* says $wgNamespaceProtection was introduced in
v1.10, which has not been released yet... !?
>> Sounds interesting though!
>
>It's on SVN. You can download a full install from there 
>http://www.mediawiki.org/wiki/Download_from_SVN
>
>You can also patch your current version. $wgNamespaceProtection was 
>included in r19110
>http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=19110
>
>Another posible solution would be using the Talkright extension
>http://meta.wikimedia.org/wiki/Talkright_extension

Platonides wrote:

>Frederich, Eric P21322 wrote:
>> Does using $wgNamespaceProtection give me the option to restrict
editing
>> anything in a namespace (except the talk pages) to a particular
group?
>> I'm guessing I can create a custom group of people and don't have to
use
>> the default sysop / bureaucrat stuff.
>
>Yes, it requires the user to have a permission (which you can give to a

>custom
>group). Talk pages are not affected, as Talk_X is a different namespace

>than X



More information about the MediaWiki-l mailing list