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.
On Wed, Jul 7, 2010 at 9:28 AM, Tolliver tolliver@dal.ca wrote:
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100edit" ] = true; [...] $wgGroupPermissions[ "Dwight_RW" ][ "ns104upload" ] = true; $wgGroupPermissions[ "Dwight_RO" ][ "ns104read" ] = true;
Your assistance would be greatly appreciated.
There are no ns10* rights. You can't make them up as you go along. The only exception for this (AFAIK) is $wgNamespaceProtection but that only affects editing.
To do what you want, you'll need one of the access extensions.
On Wed, Jul 7, 2010 at 3:42 PM, OQ overlordq@gmail.com wrote:
On Wed, Jul 7, 2010 at 9:28 AM, Tolliver tolliver@dal.ca wrote:
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100edit" ] = true; [...] $wgGroupPermissions[ "Dwight_RW" ][ "ns104upload" ] = true; $wgGroupPermissions[ "Dwight_RO" ][ "ns104read" ] = true;
Your assistance would be greatly appreciated.
There are no ns10* rights. You can't make them up as you go along. The only exception for this (AFAIK) is $wgNamespaceProtection but that only affects editing.
To do what you want, you'll need one of the access extensions.
If I remember correctly, that style of permission setup is a feature of one of the access extensions. He may already have it installed :)
-Chad
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
mediawiki-l@lists.wikimedia.org