Hi, I've just set up a private mediawiki 1.11. We are 3 users, and have 2 collaborative projects. I'm using namespaces to group all pages under Project1 and Project2. user1 has read+write access to both projects. user2 read+write to only Project1. user3 read+write to only Project2.
As I understand namespaces (custom), all pages with titles like Project1:... will belong to Project1 namespace?
So in LocalSettings.php I added: $wgExtraNamespaces = array (100 => "Project1", 101 => "Project1 Talk", 102=>"Project2", 103=>"Project2 talk");
Logged in as WikiSysop, I have made user1 belong to user groups Project1 and Project2, user2 to Project1 and user3 to Project2.
Then I added: require_once( "$IP/extensions/Lockdown/Lockdown.php" ); #give all rights on pages in namespace Project1 only to users of group 'Project1' $wgNamespacePermissionLockdown[NS_PROJECT1]['*'] = array('Project1');
#give all rights on pages in namespace Project2 only to users of group 'Project2' $wgNamespacePermissionLockdown[NS_PROJECT2]['*'] = array('Project2');
I tried with 100 instead of NS_PROJECT1 and also with "Project1".... It doesn't work.... user3 can still view + edit pages with titles like Project1:...
The global mediawiki permissions are: $wgGroupPermissions = array();
$wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = false; $wgGroupPermissions['*' ]['edit'] = false; $wgGroupPermissions['*' ]['createpage'] = false; $wgGroupPermissions['*' ]['createtalk'] = false; $wgGroupPermissions['user' ]['move'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; $wgGroupPermissions['user' ]['createpage'] = true; $wgGroupPermissions['user' ]['createtalk'] = true; $wgGroupPermissions['user' ]['upload'] = true; $wgGroupPermissions['user' ]['reupload']= true; $wgGroupPermissions['user' ]['reupload-shared'] = true; $wgGroupPermissions['user' ]['minoredit'] = true;
any help$wgGroupPermissions = array(); # Implicit group for all visitors $wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = false; $wgGroupPermissions['*' ]['edit'] = false; $wgGroupPermissions['*' ]['createpage'] = false; $wgGroupPermissions['*' ]['createtalk'] = false;
# Implicit group for all logged-in accounts $wgGroupPermissions['user' ]['move'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; $wgGroupPermissions['user' ]['createpage'] = true; $wgGroupPermissions['user' ]['createtalk'] = true; $wgGroupPermissions['user' ]['upload'] = true; $wgGroupPermissions['user' ]['reupload']= true; $wgGroupPermissions['user' ]['reupload-shared'] = true; $wgGroupPermissions['user' ]['minoredit'] = true;
regards,
mediawiki-l@lists.wikimedia.org