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

Other languages:
English • ‎日本語 • ‎polski • ‎русский • ‎中文
User Access: $wgGroupsAddToSelf
Use this to allow users to add themselves to specified groups via Special:Userrights.
導入されたバージョン: 1.12.0 (r29765)
除去されたバージョン: 使用中
可能な値: 配列
既定値: array()
他の設定: アルファベット順 | 機能順


$wgGroupsAddToSelf allows users to add themselves userrights.

1.14 以降の構文は以下の通り:

$wgGroupsAddToSelf['sysop'][] = 'bot'; // 管理者は以下のようにして自身をボット グループに追加できます: $wgGroupsAddToSelf['sysop'] = array( 'bot' );

MW 1.12 - 1.13 の構文は以下の通り:

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

1.14.0 での変更点

r39368 で、この変数の動作が変更されました。 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.