[Mediawiki-l] Protect tab not working the way I expected

Michael Kingery (HL7) mkingery at hl7.org
Fri Jul 30 19:04:08 UTC 2010


Here's the basic information about my install:

 

MediaWiki         1.12.0

PHP                 5

Database          MySQL

 

What I'm looking to do is to allow any user with edit permissions to be
able to Protect a page so that only Sysops are able to edit / unprotect
it. To do this I turned on the Protect tab with the following code in
the LocalSettings.php file:

 

# Only allow users and sysops to protect a page

$wgGroupPermissions['*']['protect'] = false;

$wgGroupPermissions['user']['protect'] = true;

$wgGroupPermissions['sysop']['protect'] = true;

 

The Protect tab does show up now, and you can protect a page, but when
ANYONE with edit privileges goes to edit they are able to do so
regardless of unprotecting the page or being a sysop. When editing, it
does show the following message, but lets you edit and save anyways:

 

WARNING: This page has been locked so that only users with sysop
privileges can edit it.

 

Any thoughts?



More information about the MediaWiki-l mailing list