Manuel:$wgGroupsAddToSelf

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgGroupsAddToSelf and the translation is 6% complete.
Other languages:
English • ‎français • ‎magyar • ‎polski • ‎русский • ‎中文 • ‎日本語
Accès des utilisateurs: $wgGroupsAddToSelf
Use this to allow users to add themselves to specified groups via Special:Userrights.
Introduit dans la version :1.12.0 (r29765)
Retiré dans la version :Encore utilisé
Valeurs autorisées :(array)
Valeur par défaut :[]

Details

$wgGroupsAddToSelf allows users to add themselves userrights.

Version de MediaWiki : 1.14

The syntax since 1.14 is:

$wgGroupsAddToSelf['sysop'][] = 'bot'; // administrators can add themselves to bot group: $wgGroupsAddToSelf['sysop'] = array( 'bot' );
Versions de MediaWiki : 1.12 – 1.13

The syntax of MW 1.12 - 1.13 is:

$wgGroupsAddToSelf = array( 'group1', 'group2', '...' );

Changes in 1.14.0

In r39368, the way this variable works was changed. Before, it allowed every user to add those groups to themselves, now it can be filtered on a per-group basis.

The new syntax is $wgGroupsAddToSelf['group1'] = array( 'group2', 'group3' ); which allows any user in the group "group1" to add the groups "group2" and "group3" to themselves. The old syntax will still work for allowing every user to add groups to themselves, but it is recommended that you use $wgGroupsAddToSelf['user'] = array( 'group1', 'group2' ); instead.

You may use $wgGroupsAddToSelf['group'] = true; to allow users in that group to add every group to themselves.

See also