André Meunier wrote:
So I'm looking into the namespaces, and it looks like it can be my thing. I've set up a group for the students (the most hurried group..), then created a namespace for them. So far, it works.
Now, I'm having some permission issues. With the namespace I created, I set up authorisations as follow : $wgGroupPermissions['students']['edit'] = false; $wgGroupPermissions['students']['editnamespaces'] = true;
I think you missed out on some of the namespace configuration steps. Assuming that the students will have access to a custom, locked out namespace, you need something like:
## Defines the custom namespace as a constant, including its numeric index define("NS_HRCALENDAR",100); ## Adds it as a custom namespace (I don't know if you need to define both the numeric index and the name - to be quite honest, I just now noticed that I had done it) $wgExtraNamespaces[100] = "HRCalendar"; $wgExtraNamespaces[NS_HRCALENDAR] = "HRCalendar"; ## Define a name for the protected namespace permission $wgNamespaceProtection[100] = array( 'editHR' ); ## Grant permission to the UnitLeads group $wgGroupPermissions['UnitLeads']['editHR'] = true;
This is used on our internal calendar to restrict adding of HR events (days off and such) to those who can approve requests. It's an incredibly simple situation - for something as involved as yours, I'd try the Lockdown extension (http://www.mediawiki.org/wiki/Extension:Lockdown)
Here are some pages to get you started: http://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_editing_of_a... http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection