From 1875f690f315057e873a6e73131e3efd0db46999 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 27 Oct 2008 00:55:12 +0000 Subject: [PATCH] Expanded documentation for $wgGroupsAddToSelf/$wgGroupsRemoveFromSelf. --- includes/DefaultSettings.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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(); -- 2.20.1