Manual:$wgRestrictionLevels

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgRestrictionLevels and the translation is 33% complete.

Other languages:
Deutsch • ‎English • ‎français • ‎日本語 • ‎polski • ‎中文
Site customization: $wgRestrictionLevels
Set of permission keys that can be selected on the "page protection" page.
導入されたバージョン: 1.6.0 (r12207)
除去されたバージョン: 使用中
可能な値: 文字列の配列
既定値: array( '', 'autoconfirmed', 'sysop' )
他の設定: アルファベット順 | 機能順

詳細[edit]

This variable contains a list of permission keys that can be selected for each restriction type on the "page protection" page (action=protect). 'autoconfirmed' allows all registered users if $wgAutoConfirmAgeManual:$wgAutoConfirmAge and $wgAutoConfirmCountManual:$wgAutoConfirmCount are 0.

$wgRestrictionLevels は、利用者グループではなく利用者権限を保持します。 If you need to, you can make up your own permission and then assign it to the different user groups as required. 例:

# add an additional protection level restricting edit/move/etc. to users with the "docwriters" permission
$wgRestrictionLevels[] = 'docwriters'; 
# give the "docwriters" permission to users in the "docwriters" group
$wgGroupPermissions['docwriters']['docwriters'] = true;
# give the "docwriters" permission to sysops (needed so sysops can apply this protection level to pages)
$wgGroupPermissions['sysop']['docwriters'] = true;

注 注: 'sysop' and 'autoconfirmed' are actually user groups rather than user rights, but are allowed for backwards compatibility. They should be mapped to 'editprotected' and 'editsemiprotected' respectively when comparing against user rights.

If you add additional levels (e.g. 'docwriters'), you can set the "display name" seen in the user interface by creating a MediaWiki page like 'MediaWiki:Protect-level-docwriters'.

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 $wgNamespaceProtectionManual:$wgNamespaceProtection.

関連項目[edit]