[Mediawiki-l] adding namespaces and rights
André Meunier
ameunier at ulg.ac.be
Fri Sep 4 09:57:42 UTC 2009
Hello,
I already had configured a namespace with certain rights defined for
users in that group :
$wgGroupPermissions['bac2008']['read'] = true;
$wgGroupPermissions['bac2008']['edit'] = true;
$wgGroupPermissions['bac2008']['createpage']= true;
$wgGroupPermissions['bac2008']['upload']= true;
$wgGroupPermissions['bac2008']['createtalk']= true;
$wgExtraNamespaces = array(100 => "bac2008", 101 => "bac2008_talk" );
$wgGroupPermissions['root']['editroot'] = true;
$wgNamespaceProtection[NS_MAIN] = $wgNamespaceProtection[NS_USER] =
$wgNamespaceProtection[NS_PROJECT] = $wgNamespaceProtection[NS_IMAGE] =
$wgNamespaceProtection[NS_TEMPLATE] = $wgNamespaceProtection[NS_HELP] =
$wgNamespaceProtection[NS_CATEGORY] = array( 'editroot' );
$wgGroupPermissions['bac2008']['editbac2008'] = true;
$wgNamespaceProtection[ 100 ] = array( 'editbac2008' );
I want to add another namespace, with other rights for other users. I
tried adding :
$wgGroupPermissions['gt_acc']['read'] = true;
$wgGroupPermissions['gt_acc']['edit'] = true;
$wgGroupPermissions['gt_acc']['createpage']= true;
$wgGroupPermissions['gt_acc']['upload']= true;
$wgGroupPermissions['gt_acc']['createtalk']= true;
$wgExtraNamespaces = array(200 => "gt_acc", 201 => "gt_acc_talk" );
$wgGroupPermissions['gt_acc']['editgt_acc'] = true;
$wgNamespaceProtection[ 200 ] = array( 'editgt_acc' );
But then, pages from my first namespace [bac2008] doesn't work. Pages I
had made for that namespace are marked as not created.
I'll need to make several more namespaces, for different groups using
the wiki (some groups who can only access their namespace, some groups
who can access several namespaces).
What I am doing wrong? Is there any way easier than this one?
Thanks
André
More information about the MediaWiki-l
mailing list