
smcafee at collaborativefusion
Oct 8, 2008, 5:40 AM
Post #2 of 4
(879 views)
Permalink
|
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_an_entire_namespace http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection -- Sean McAfee System Engineer Collaborative Fusion, Inc. smcafee [at] collaborativefusion 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. _______________________________________________ MediaWiki-l mailing list MediaWiki-l [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
|