Manual:$wgRestrictionLevels

From MediaWiki.org
Jump to: navigation, search
Site customization: $wgRestrictionLevels
Set of permission keys that can be selected on the 'page protection' page.
Introduced in version: 1.6.0 (r12207)
Removed in version: still in use
Allowed values: array of strings
Default value: array( '', 'autoconfirmed', 'sysop' );

Other settings: Alphabetical | By Function


Details [edit]

Set of permission keys that can be selected on the 'page protection' page. 'autoconfirmed' allows all registered users if $wgAutoConfirmAge and $wgAutoConfirmCount are 0.

If you add additional levels (e.g. 'docwriters') those can be named via editing the content of 'MediaWiki:Protect-level-docwriters'.

Don't forget to adjust your group permissions accordingly; e.g.:

$wgRestrictionLevels[] = 'docwriters';
$wgGroupPermissions['docwriters']['docwriters'] = true;
$wgGroupPermissions['sysop']['docwriters'] = true;

If you set a level higher than sysops, that is, protection from sysop editing, sysops cannot give a page that level of protection nor remove it, even with the 'protect' permission.

A user with the 'protect' permission still cannot protect a page that he/she can't edit, such as if defined as such by $wgNamespaceProtection.

See also [edit]

Language: English  • Deutsch • français • 日本語