r102873 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102872‎ | r102873 | r102874 >
Date:22:36, 12 November 2011
Author:aaron
Status:ok
Tags:
Comment:
Document $wgGroupPermissions better, including per-NS stuff
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -3374,6 +3374,13 @@
33753375
33763376 /**
33773377 * Permission keys given to users in each group.
 3378+ * This is an array where the keys are all groups and each value is either:
 3379+ * a) An array of the format (right => boolean)
 3380+ * b) An array of the format (right => namespace => boolean)
 3381+ *
 3382+ * The second format is used to support per-namespace permissions.
 3383+ * Note that this feature does not fully work for all permission types.
 3384+ *
33783385 * All users are implicitly in the '*' group including anonymous visitors;
33793386 * logged-in users are all implicitly in the 'user' group. These will be
33803387 * combined with the permissions of all groups that a given user is listed
@@ -3384,14 +3391,10 @@
33853392 * unable to perform certain essential tasks or access new functionality
33863393 * when new permissions are introduced and default grants established.
33873394 *
3388 - * If set to an array instead of a boolean, it is assumed that the array is in
3389 - * NS => bool form in order to support per-namespace permissions. Note that
3390 - * this feature does not fully work for all permission types.
3391 - *
33923395 * Functionality to make pages inaccessible has not been extensively tested
33933396 * for security. Use at your own risk!
33943397 *
3395 - * This replaces wgWhitelistAccount and wgWhitelistEdit
 3398+ * This replaces $wgWhitelistAccount and $wgWhitelistEdit
33963399 */
33973400 $wgGroupPermissions = array();
33983401

Follow-up revisions

RevisionCommit summaryAuthorDate
r105851Reverted r92364 (per-namespace permissions)....tstarling06:03, 12 December 2011

Status & tagging log