Manual:$wgAddGroups/pt-br

Category:MediaWiki configuration settings/pt-br#AddGroupsCategory:MediaWiki configuration settings introduced in version 1.11.0/pt-br#AddGroupsCategory:MediaWiki configuration settings still in use/pt-br#AddGroupsCategory:Permission variables/pt-br#AddGroups
User rights, access control and monitoring: $wgAddGroups
Controla quem pode adicionar grupos específicos usando Special:Permissões de usuários.
Introduzido na versão:1.11.0
Removido na versão:ainda em uso
Valores permitidos:(array)
Valor padrão:[]

Detalhes

Versão MediaWiki:
1.12

Por padrão, o grupo de usuários burocratas pode conceder todos os direitos, por causa das seguintes configurações:

$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.

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

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

$wgAddGroups['bureaucrat'][] = 'sysop';
$wgAddGroups['bureaucrat'][] = 'bot';
Versão MediaWiki:
1.11

Se um grupo pode adicionar qualquer direito (exemplo: burocratas podem adicionar qualquer direito):

$wgAddGroups['bureaucrat'] = true;

Se um grupo pode adicionar apenas alguns direitos (exemplo: burocratas podem adicionar apenas grupos sysop e bot):

$wgAddGroups['bureaucrat'] = [ 'sysop', 'bot' ];

Troubleshooting

Not seeing permission checkboxes

If after setting this, you do not see the group checkboxes on the Special:Userrights page for a particular user, it might mean that they're already in that group and that the groups you are in do not allow the removal of a user from the set groups.

Once a user is in a group, defined by this setting the group checkboxes will only show up if $wgRemoveGroups is also set for the group in question.

Ver também

Category:Permission variables/pt-br#AddGroups
Category:MediaWiki configuration settings/pt-br Category:MediaWiki configuration settings introduced in version 1.11.0/pt-br Category:MediaWiki configuration settings still in use/pt-br Category:Permission variables/pt-br