Jump to content

Příručka:$wgGrantPermissionGroups

From mediawiki.org
This page is a translated version of the page Manual:$wgGrantPermissionGroups and the translation is 65% complete.
Uživatelská práva, řízení přístupu a monitorování: $wgGrantPermissionGroups
Používá se k definování grantových skupin a přiřazení grantů k nim.
Zavedeno od verze:1.27.0 (Gerrit change 259062; git #ef5bd734)
Odstraněno od verze:stále se používá
Povolené hodnoty:(asociativní mapování polí grantů grantových skupin)
Výchozí hodnota:Viz níže

Podrobnosti

Skupiny grantů se v některých uživatelských rozhraních používají ke společnému zobrazení koncepčně podobných grantů.

Tuto konfigurační hodnotu by obvykle měla nastavovat rozšíření, nikoli správci webu.

Nové skupiny grantů lze jednoduše vytvořit pomocí nového názvu skupiny. Uživatelsky viditelné jméno grantové skupiny lze definovat pomocí zprávy grant-group-<name>.

Výchozí hodnota

Verze 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+
];
Starší verze
Verze MediaWiki:
1.35
$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+
];
Verze MediaWiki:
1.33 – 1.34
$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+
];
Verze MediaWiki:
1.32
$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+
];
Verze MediaWiki:
1.29 – 1.31
$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+
];
Verze MediaWiki:
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+
];
Verze MediaWiki:
1.27
$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',
];

Příklad

$wgGrantPermissionGroups['editprotected'] = 'page-interaction';
$wgGrantPermissionGroups['patrol'] = 'page-interaction';
$wgGrantPermissionGroups['uploadfile'] = 'file-interaction';

Související odkazy