r98058 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98057‎ | r98058 | r98059 >
Date:06:37, 25 September 2011
Author:aaron
Status:resolved (Comments)
Tags:
Comment:
(bug 25732) Added new 'centralauth-autoaccount' to let anons get local accounts from global ones automatically.
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuth.php (modified) (history)
  • /trunk/extensions/CentralAuth/CentralAuthPlugin.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthPlugin.php
@@ -137,7 +137,8 @@
138138 function autoCreate() {
139139 global $wgGroupPermissions;
140140 // Yes unless account creation is restricted on this wiki
141 - return !empty( $wgGroupPermissions['*']['createaccount'] );
 141+ return !empty( $wgGroupPermissions['*']['createaccount'] )
 142+ || !empty( $wgGroupPermissions['*']['centralauth-autoaccount'] );
142143 }
143144
144145 /**
Index: trunk/extensions/CentralAuth/CentralAuth.php
@@ -203,6 +203,8 @@
204204 $wgAvailableRights[] = 'centralauth-oversight';
205205 $wgAvailableRights[] = 'globalgrouppermissions';
206206 $wgAvailableRights[] = 'globalgroupmembership';
 207+$wgAvailableRights[] = 'centralauth-autoaccount';
 208+
207209 $wgGroupPermissions['steward']['centralauth-unmerge'] = true;
208210 $wgGroupPermissions['steward']['centralauth-lock'] = true;
209211 $wgGroupPermissions['steward']['centralauth-oversight'] = true;

Follow-up revisions

RevisionCommit summaryAuthorDate
r98147FU r98058...aaron17:40, 26 September 2011

Comments

#Comment by Siebrand (talk | contribs)   08:44, 25 September 2011

Please add a rights-<right> message when adding rights. These are used on special:listgrouprights. Please add message documentation for the newly added messages. Thanks.

Status & tagging log