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?

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to