Thread:Project:Support desk/Restrict Usergroup Access to Specific Page Group/reply (3)

Alright, so adding the following line in LocalSettings.php restricts editing of the main directory it seems:

$wgNamespaceProtection[NS_MAIN]     = array( 'editinterface' );

However, I am confused as to how to specify an additional namespace that can be edited, a debates section. If the debates section is wiki/debates, then how do I declare a namespace that declares this page can be edited, unlike the others?

I think I understand how to setup a custom namespace for debates that can be edited using the following:

$wgNamespaceProtection[NS_DEBATES]     = array( 'debates-edit' );

$wgExtraNamespaces = array(100 => "Debates",);

$wgGroupPermissions['user']['debates-edit'] = true; $wgGroupPermissions['administrator']['debates-edit'] = true; $wgGroupPermissions['bureaucrat']['debates-edit'] = true; $wgGroupPermissions['sysop']['debates-edit'] = true;

What I don't understand is how to assign this new namespace to the debates section itself. Since the debates section is apparently part of the main namespace, I'm not sure how to separate it so it can be edited. Or else, if the coding is now declaring a new namespace called Debates can be edited, I'm not sure how to create pages at this namespace for editing.

At any rate, the coding right now is having no effect. While the entire wiki can't be edited by registered accounts apart from talk pages (which I want) the debates section also can't be edited (which I don't want).