[Mediawiki-l] Group permission issue

Tolliver tolliver at dal.ca
Wed Jul 7 14:28:25 UTC 2010


Hello,

I am trying to configure a wiki to allow specific users to see/access 
only to certain pages. My method of achieving this is to add three extra 
NameSpaces and  three Groups (assign group access to individual users).

Current Setup:
--------------------------
MediaWiki: 1.11.0
PHP: 5.1.6
MySQL: 5.0.77

Setup on my test wiki:
---------------------------------
- Created three groups
- Created three extra NameSpaces
- Assigned myself to a group with RW (Border)
- Created page with NameSpace(Border:xxxxxx)

Wikitext:
* [[Border:WikiSetup|Wiki Setup]]


Problem:
If I try to access the page with the NameSpace in question,
there is no affect, whether I set the $wgGroupPermissions to true or 
false (I
can view the page). Also, If I set it to RO, I can edit the page.
---------------------------------------------------------------------------------------------------------------

Here is my configuration in the LocalSettings.php file:

$wgExtraNamespaces[100] = "NetRedesign";
$wgExtraNamespaces[102] = "Border";
$wgExtraNamespaces[104] = "Dwight";

$wgNamespacesToBeSearchedDefault = array( NS_MAIN => 1, NS_USER => 1, 
100 => 1, 102 => 1, 104 => 1);

$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100edit" ] = true;
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100read" ] = true;
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100create" ] = true;
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100move" ] = true;
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100upload" ] = true;
$wgGroupPermissions[ "NetRedesign_RO" ][ "ns100read" ] = true;

$wgGroupPermissions[ "Border_RW" ][ "ns102edit" ] = true;
$wgGroupPermissions[ "Border_RW" ][ "ns102read" ] = true;
$wgGroupPermissions[ "Border_RW" ][ "ns102create" ] = true;
$wgGroupPermissions[ "Border_RW" ][ "ns102move" ] = true;
$wgGroupPermissions[ "Border_RW" ][ "ns102upload" ] = true;
$wgGroupPermissions[ "Border_RO" ][ "ns102read" ] = true;

$wgGroupPermissions[ "Dwight_RW" ][ "ns104edit" ] = true;
$wgGroupPermissions[ "Dwight_RW" ][ "ns104read" ] = true;
$wgGroupPermissions[ "Dwight_RW" ][ "ns104create" ] = true;
$wgGroupPermissions[ "Dwight_RW" ][ "ns104move" ] = true;
$wgGroupPermissions[ "Dwight_RW" ][ "ns104upload" ] = true;
$wgGroupPermissions[ "Dwight_RO" ][ "ns104read" ] = true;


Your assistance would be greatly appreciated.




More information about the MediaWiki-l mailing list