From 0517581a54740628db13e2a38e57da737c5fc0df Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 12 Nov 2011 22:36:47 +0000 Subject: [PATCH] Document $wgGroupPermissions better, including per-NS stuff --- includes/DefaultSettings.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index dccd91c2ac..0f4a1b816a 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3374,6 +3374,13 @@ $wgEmailConfirmToEdit = false; /** * Permission keys given to users in each group. + * This is an array where the keys are all groups and each value is either: + * a) An array of the format (right => boolean) + * b) An array of the format (right => namespace => boolean) + * + * The second format is used to support per-namespace permissions. + * Note that this feature does not fully work for all permission types. + * * All users are implicitly in the '*' group including anonymous visitors; * logged-in users are all implicitly in the 'user' group. These will be * combined with the permissions of all groups that a given user is listed @@ -3384,14 +3391,10 @@ $wgEmailConfirmToEdit = false; * unable to perform certain essential tasks or access new functionality * when new permissions are introduced and default grants established. * - * If set to an array instead of a boolean, it is assumed that the array is in - * NS => bool form in order to support per-namespace permissions. Note that - * this feature does not fully work for all permission types. - * * Functionality to make pages inaccessible has not been extensively tested * for security. Use at your own risk! * - * This replaces wgWhitelistAccount and wgWhitelistEdit + * This replaces $wgWhitelistAccount and $wgWhitelistEdit */ $wgGroupPermissions = array(); -- 2.20.1