[Mediawiki-l] Group permission issue

Peter Velan pv0001 at dynapic.net
Wed Jul 7 21:59:22 UTC 2010


am 07.07.2010 16:28 schrieb Tolliver:
> 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 
> [...]
> ---------------------------------------------------------------------------------------------------------------
>
> Here is my configuration in the LocalSettings.php file:

Lets reduce your example to one namespace only:

> $wgExtraNamespaces[100] = "NetRedesign";
> [...]
> $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;

Are you using the extension "NamespacePermissions"? I yes, I think you
have to reverse the placement of the underscore, like ...

$wgExtraNamespaces[100] = "NetRedesign";

$wgGroupPermissions[ "NetRedesignRW" ][ "ns100_edit" ] = true;
$wgGroupPermissions[ "NetRedesignRW" ][ "ns100_read" ] = true;
$wgGroupPermissions[ "NetRedesignRW" ][ "ns100_create" ] = true;
$wgGroupPermissions[ "NetRedesignRW" ][ "ns100_move" ] = true;
$wgGroupPermissions[ "NetRedesignRW" ][ "ns100_upload" ] = true;
$wgGroupPermissions[ "NetRedesignRO" ][ "ns100_read" ] = true;

HTH,
Peter



More information about the MediaWiki-l mailing list