Manual:$wgNamespaceProtection/ja
名前空間: $wgNamespaceProtection | |
---|---|
誰が名前空間を編集できるか? |
|
導入されたバージョン: | 1.10.0 (r19110) |
除去されたバージョン: | 使用中 |
可能な値: | array of arrays |
既定値: | $wgNamespaceProtection[NS_MEDIAWIKI] = array( 'editinterface' ); (1.10 から 1.13 まで)
|
詳細[edit | edit source]
この設定によってある名前空間の記事を編集するユーザーに対して特別なパーミッションを求めることができるようになります。デフォルトでは、唯一の制限はMediaWiki名前空間は'editinterface'
パーミッションを持つユーザーのみが編集可能であることです(デフォルト: sysops)。
配列のキーは名前空間の番号で、値はシンプルなパーミッション名の配列です。任意の名前空間に対して複数のパーミッションを一覧表示する場合、その名前空間で編集するためにはユーザーはそれらのすべてのパーミッションを持たなければなりません。
Since 1.14, the MediaWiki: namespace is unconditionally protected to users with 'editinterface' right (same as in previous versions). This is set in Setup.php and cannot be modified in LocalSettings.php since otherwise it's too easy to set it incorrectly and leave the wiki insecure. If you want to allow other groups than sysops to edit the MediaWiki: namespace, then grant the 'editinterface' right to those groups.
例[edit | edit source]
標準名前空間での編集制限[edit | edit source]
$wgNamespaceProtection[NS_MAIN] = array( 'edit-main' );
This restricts editing in the main namespace to people in a group that has the edit-main permission.
書き込みアクセス制限付きのカスタム名前空間のセットアップ[edit | edit source]
define("NS_OFFICIAL", 100); define("NS_OFFICIAL_TALK", 101); $wgExtraNamespaces = array(100 => "Official", 101 => "Official_talk", ); $wgNamespaceProtection[NS_OFFICIAL] = array( 'official-edit' ); $wgNamespaceProtection[NS_OFFICIAL_TALK] = array( 'official-talk-edit' ); $wgGroupPermissions['managers']['official-edit'] = true; //only managers can edit pages in the Official namespace $wgGroupPermissions['employees']['official-talk-edit'] = true; //employees can edit pages in the Official_talk namespace $wgGroupPermissions['managers']['official-talk-edit'] = true; //so can managers
関連項目[edit | edit source]
- Extension:SimpleSecurity: extends native MediaWiki protection to allow article's viewability to be restricted
- Extension:Lockdown/ja: 名前空間ごとにグループに対するパーミッションを設定します
- Category:Page specific user rights extensions/ja: 何らかの方法でページアクセスを管理する拡張機能の一覧です
- Extension:NSFileRepo: set permissions for images and files per namespace (custom local file repository namespace protection - based on Extension:Lockdown)
言語: | English • français • 日本語 • polski |
---|