Ok ! that part works. Thank you ! Now, there are still things that I don't understand, and that don't work.
For now, I have 3 types of user : admin, bac2008 and gt_acc. admin of course should have access to all. bac2008 should only have access (read and write) to the bac2008 namespace. gt_acc should access bac2008 (read only) and to gt_acc (read and write). with the permissions I have now, admin has only reading rights to the gt_acc namespace and the gt_acc has no writing rights at all (either in bac2008 or gt_acc namespaces). I'm really having a hard time understanding those permissions.. A. Jean-Marc van Leerdam a écrit : > Hi André > > 2009/9/4 André Meunier <[email protected]>: > >> 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" ); >> >> > > This overwrites the first declaration of wgExtraNamespaces. You need > to add to it, not overwrite: > > $wgExtraNamespaces[200] = "gt_acc"; > $wgExtraNamespaces[201] = "gt_acc_talk"; > > > -- *André Meunier* Université de Liège Bibliothèque des Sciences de la Vie Bat B35, Avenue de l'Hôpital CHU Sart Tilman 4000 Liège Téléphone : 04 366 2173 http://www.libnet.ulg.ac.be/mede/ _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
