Multiple Protection Levels

Jump to: navigation, search

[edit] Multiple Protection Levels

Hello

I know the basics of using $wgRestrictionLevels and $wgGroupPermissions to create multiple protection levels, but getting exactly what I'm after is a bit tricky.

I want three protection levels, one for each of my user groups:

  • Moderators
Can be edited by Moderators, Administrators and Bureaucrats
Only Bureaucrats can apply this level of protection
  • Administrators
Can be edited only by Administrators and Bureaucrats
Both Administrators and Bureaucrats can apply this level of protection
  • Bureaucrats
Can be applied and edited only by Bureaucrats

The trouble that I'm having is with the Moderator level, as giving Administrators the right to "protect" pages automatically gives them the right to protect all levels that they can edit - I can't find a way to allow them to edit the Moderators level without being able to apply it.

So, if what I'm asking for is possible, could you please provide me with the code to set this up (all of it, I would rather be safe and be given all of the code, than just ask for the part about the Moderators level and assume I can work the rest around it).

MediaWiki version: 1.16.0

Thanks!

See the original post

Multiple Protection LevelsTalk 05:21, 15 November 2010 (UTC)

Multiple Protection Levels02:33, 19 November 2010

Hi there,

Unfortunately, this feature has not been implemented in MediaWiki. You'll probably need to implement it yourself -- the best places to look are includes/ProtectionForm.php and in includes/api/ApiProtect.php. That's where the protect/unprotect interfaces (both API and web) are implemented.

Andrew Garrett01:22, 22 November 2010
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox