Hello,
I've been quite busy with other work, and wasn't able to continue working on my permissions issue. Nevertheless, I have been able to get the permissions to work for the four groups I setup. However, any users just in the Bureaucrat and or Sysop group doesn't have access to either of the four groups - unable to access any pages with the Namespaces outlined below.
Here is the error: The action you have requested is limited to users in one of the groups *, user.
Return to Main Page https://dev.wiki.dal.ca/wiki/index.php/Main_Page.
This is what I have configured in the LocalSettings.php file: $wgExtraNamespaces[100] = "NetRedesign"; $wgExtraNamespaces[102] = "Border"; $wgExtraNamespaces[104] = "Dwight"; $wgExtraNamespaces[106] = "Ensg";
require_once( "extensions/NamespacePermissions.php" );
$wgNamespacesToBeSearchedDefault = array( NS_MAIN => 1, NS_USER => 1, 100 => 1, 102 => 1,104 => 1,106 => 1);
$wgGroupPermissions[ "NetRedesign_RW" ][ "ns100_edit" ] = true; $wgGroupPermissions[ "NetRedesign_RW" ][ "ns100_read" ] = true; $wgGroupPermissions[ "NetRedesign_RW" ][ "ns100_create" ] = true; $wgGroupPermissions[ "NetRedesign_RW" ][ "ns100_move" ] = true; $wgGroupPermissions[ "NetRedesign_RW" ][ "ns100_upload" ] = true; $wgGroupPermissions[ "NetRedesign_RO" ][ "ns100_read" ] = true;
$wgGroupPermissions[ "Border_RW" ][ "ns102_edit" ] = true; $wgGroupPermissions[ "Border_RW" ][ "ns102_read" ] = true; $wgGroupPermissions[ "Border_RW" ][ "ns102_create" ] = true; $wgGroupPermissions[ "Border_RW" ][ "ns102_move" ] = true; $wgGroupPermissions[ "Border_RW" ][ "ns102_upload" ] = true; $wgGroupPermissions[ "Border_RO" ][ "ns102_read" ] = true;
$wgGroupPermissions[ "Dwight_RW" ][ "ns104_edit" ] = true; $wgGroupPermissions[ "Dwight_RW" ][ "ns104_read" ] = true; $wgGroupPermissions[ "Dwight_RW" ][ "ns104_create" ] = true; $wgGroupPermissions[ "Dwight_RW" ][ "ns104_move" ] = true; $wgGroupPermissions[ "Dwight_RW" ][ "ns104_upload" ] = true; $wgGroupPermissions[ "Dwight_RO" ][ "ns104_read" ] = true;
$wgGroupPermissions[ "Ensg_RW" ][ "ns106_edit" ] = true; $wgGroupPermissions[ "Ensg_RW" ][ "ns106_read" ] = true; $wgGroupPermissions[ "Ensg_RW" ][ "ns106_create" ] = true; $wgGroupPermissions[ "Ensg_RW" ][ "ns106_move" ] = true; $wgGroupPermissions[ "Ensg_RW" ][ "ns106_upload" ] = true; $wgGroupPermissions[ "Ensg_RO" ][ "ns106_read" ] = true;
------------------------------------------------------------------------------------------------------------------------------------------ Initial message:
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 Thu, Jul 15, 2010 at 10:32 AM, Tolliver tolliver@dal.ca wrote:
However, any users just in the Bureaucrat and or Sysop group doesn't have access to either of the four groups - unable to access any pages with the Namespaces outlined below.
You haven't given bureaucrats or sysops access. You need to explicitly grant them access permissions if you want their members to have access without being in another group.
Also, you're using an insecure and unsupported extension running on an insecure and unsupported version of MediaWiki. You should consider upgrading to MediaWiki 1.15 and using the Lockdown extension.
Hello Benjamin,
Yes, I have already done that, but I thought that Bureaucrat and Sysop had access to all pages.
I will be upgrading very soon.
Thanks for informing me of that.
-Tolliver- ---------------------- Benjamin Lees wrote:
On Thu, Jul 15, 2010 at 10:32 AM, Tolliver tolliver@dal.ca wrote:
However, any users just in the Bureaucrat and or Sysop group doesn't have access to either of the four groups - unable to access any pages with the Namespaces outlined below.
You haven't given bureaucrats or sysops access. You need to explicitly grant them access permissions if you want their members to have access without being in another group.
Also, you're using an insecure and unsupported extension running on an insecure and unsupported version of MediaWiki. You should consider upgrading to MediaWiki 1.15 and using the Lockdown extension. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org