Hi,
I've looked into the permissions, and the Lockdown extension.
From what I understand, you can only limit permissions to a namespace
for people who have already the rights in the main wiki?
From my tests, if I restrain the rights for my students to edit the
main wiki, even if I grant them permissions to edit the namespace, it
doesn't work.
Is there a way to go around that?
The idea would be to have a general main wiki with general informations,
only editable by the staff, then a namespace for the students, where
they can do whatever they want.
Thanks
Sean McAfee a écrit :
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_…
http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces
http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection
--
André Meunier
Bibliothèque des Sciences de la Vie
/Partim/ Médecine