Manual:$wgGrantPermissionGroups
Appearance
利用者権限、アクセス制御、モニタリング: $wgGrantPermissionGroups | |
---|---|
Used to define grant groups and assign grants to them. |
|
導入されたバージョン: | 1.27.0 (Gerrit change 259062; git #ef5bd734) |
除去されたバージョン: | 使用中 |
許容される値: | (associative array mapping grants to grant groups) |
既定値: | 下記参照 |
その他の設定: アルファベット順 | 機能順 |
詳細
Grant groups are used on some user interfaces to display conceptually similar grants together.
This configuration value should usually be set by extensions, not site administrators.
New grant groups can simply be created by using a new group name.
The user-visible name of a grant group can be defined via the grant-group-<name>
message.
既定値
MediaWiki バージョン: | ≧ 1.36 |
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'editsiteconfig' => 'administration', // 1.32+
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'viewrestrictedlogs' => 'administration', // 1.29+
'protect' => 'administration',
'oversight' => 'administration', // 1.33+
'createaccount' => 'administration',
'mergehistory' => 'administration', // 1.35+
'import' => 'administration', // 1.36+
'highvolume' => 'high-volume',
'privateinfo' => 'private-information', // 1.28+
];
Older versions | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'editsiteconfig' => 'administration', // 1.32+
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'viewrestrictedlogs' => 'administration', // 1.29+
'protect' => 'administration',
'oversight' => 'administration', // 1.33+
'createaccount' => 'administration',
'mergehistory' => 'administration', // 1.35+
'highvolume' => 'high-volume',
'privateinfo' => 'private-information', // 1.28+
];
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'editsiteconfig' => 'administration', // 1.32+
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'viewrestrictedlogs' => 'administration', // 1.29+
'protect' => 'administration',
'oversight' => 'administration', // 1.33+
'createaccount' => 'administration',
'highvolume' => 'high-volume',
'privateinfo' => 'private-information', // 1.28+
];
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'editsiteconfig' => 'administration', // 1.32+
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'viewrestrictedlogs' => 'administration', // 1.29+
'protect' => 'administration',
'createaccount' => 'administration',
'highvolume' => 'high-volume',
'privateinfo' => 'private-information', // 1.28+
];
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'viewrestrictedlogs' => 'administration', // 1.29+
'protect' => 'administration',
'createaccount' => 'administration',
'highvolume' => 'high-volume',
'privateinfo' => 'private-information', // 1.28+
];
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'protect' => 'administration',
'createaccount' => 'administration',
'highvolume' => 'high-volume',
'privateinfo' => 'private-information', // 1.28+
];
$wgGrantPermissionGroups = [
// Hidden grants are implicitly present
'basic' => 'hidden',
'editpage' => 'page-interaction',
'createeditmovepage' => 'page-interaction',
'editprotected' => 'page-interaction',
'patrol' => 'page-interaction',
'uploadfile' => 'file-interaction',
'uploadeditmovefile' => 'file-interaction',
'sendemail' => 'email',
'viewmywatchlist' => 'watchlist-interaction',
'editviewmywatchlist' => 'watchlist-interaction',
'editmycssjs' => 'customization',
'editmyoptions' => 'customization',
'editinterface' => 'administration',
'rollback' => 'administration',
'blockusers' => 'administration',
'delete' => 'administration',
'viewdeleted' => 'administration',
'protect' => 'administration',
'createaccount' => 'administration',
'highvolume' => 'high-volume',
];
|
例
$wgGrantPermissionGroups['editprotected'] = 'page-interaction';
$wgGrantPermissionGroups['patrol'] = 'page-interaction';
$wgGrantPermissionGroups['uploadfile'] = 'file-interaction';