Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgAddGroups and the translation is 27% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎中文 • ‎日本語 • ‎한국어
User Access: $wgAddGroups
Controls who can add specific groups using Special:Userrights.
Introduzida na versão:1.11.0
Removida na versão:ainda em uso
Valores permitidos:(array)
Valor por omissão:[]
Outras configurações: Lista Alfabética | Lista por Função


MediaWiki version: 1.12

By default the bureaucrat user group may grant all rights, because of the following setting:

$wgGroupPermissions['bureaucrat']['userrights'] = true;

Note that groups which may only grant some rights (like bureaucrats in this example) need to have the userrights privilege set to false, otherwise they will still be able to add all groups (except in 1.11).

$wgGroupPermissions['bureaucrat']['userrights'] = false;

Alternatively, $wgAddGroups can be defined without potentially overwriting an extension's definition:

$wgAddGroups['bureaucrat'][] = 'sysop';
$wgAddGroups['bureaucrat'][] = 'bot';
MediaWiki version: 1.11

If a group can add any right (example: bureaucrats can add any right):

$wgAddGroups['bureaucrat'] = true;

If a group can add only some rights (example: bureaucrats can add only sysop and bot groups):

$wgAddGroups['bureaucrat'] = array( 'sysop', 'bot' );

Ver também