From: Tim Starling Date: Mon, 27 Oct 2008 00:55:12 +0000 (+0000) Subject: Expanded documentation for $wgGroupsAddToSelf/$wgGroupsRemoveFromSelf. X-Git-Tag: 1.31.0-rc.0~44574 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=1875f690f315057e873a6e73131e3efd0db46999;p=lhc%2Fweb%2Fwiklou.git Expanded documentation for $wgGroupsAddToSelf/$wgGroupsRemoveFromSelf. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 6607e4d37c..4c21ac4489 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1217,8 +1217,22 @@ $wgGroupPermissions['bureaucrat']['noratelimit'] = true; $wgImplicitGroups = array( '*', 'user', 'autoconfirmed' ); /** - * These are the groups that users are allowed to add to or remove from - * their own account via Special:Userrights. + * A map of group names that the user is in, to group names that those users + * are allowed to add or revoke. + * + * Setting the list of groups to add or revoke to true is equivalent to "any group". + * + * For example to allow sysops to add themselves to the "bot" group: + * + * $wgGroupsAddToSelf = array( 'sysop' => array( 'bot' ) ); + * + * Implicit groups may be used for the source group, for instance: + * + * $wgGroupsRemoveFromSelf = array( '*' => true ); + * + * This allows users in the '*' group (i.e. any user) to remove themselves from + * any group that they happen to be in. + * */ $wgGroupsAddToSelf = array(); $wgGroupsRemoveFromSelf = array();