| Index: trunk/phase3/includes/User.php |
| — | — | @@ -773,6 +773,17 @@ |
| 774 | 774 | if( $accountAge >= $wgAutoConfirmAge ) { |
| 775 | 775 | $implicitGroups[] = 'autoconfirmed'; |
| 776 | 776 | } |
| | 777 | + |
| | 778 | + # Implicit group for users whose email addresses are confirmed |
| | 779 | + global $wgEmailAuthentication; |
| | 780 | + if( $this->isValidEmailAddr( $this->mEmail ) ) { |
| | 781 | + if( $wgEmailAuthentication ) { |
| | 782 | + if( $this->mEmailAuthenticated ) |
| | 783 | + $implicitGroups[] = 'emailconfirmed'; |
| | 784 | + } else { |
| | 785 | + $implicitGroups[] = 'emailconfirmed'; |
| | 786 | + } |
| | 787 | + } |
| 777 | 788 | |
| 778 | 789 | $effectiveGroups = array_merge( $implicitGroups, $this->mGroups ); |
| 779 | 790 | $this->mRights = $this->getGroupPermissions( $effectiveGroups ); |
| Index: trunk/phase3/includes/DefaultSettings.php |
| — | — | @@ -882,6 +882,10 @@ |
| 883 | 883 | // Implicit group for accounts that pass $wgAutoConfirmAge |
| 884 | 884 | $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true; |
| 885 | 885 | |
| | 886 | +// Implicit group for accounts with confirmed email addresses |
| | 887 | +// This has little use when email address confirmation is off |
| | 888 | +$wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true; |
| | 889 | + |
| 886 | 890 | // Users with bot privilege can have their edits hidden |
| 887 | 891 | // from various log pages by default |
| 888 | 892 | $wgGroupPermissions['bot' ]['bot'] = true; |
| Index: trunk/phase3/RELEASE-NOTES |
| — | — | @@ -652,8 +652,8 @@ |
| 653 | 653 | * (bug 6560) Avoid PHP notice when trimming ISBN whitespace |
| 654 | 654 | * Added namespace translation to Kannada (ka) |
| 655 | 655 | * (bug 6566) Improve input validation on timestamp conversion |
| | 656 | +* Implicit group "emailconfirmed" for all users whose email addresses are confirmed |
| 656 | 657 | |
| 657 | | - |
| 658 | 658 | == Compatibility == |
| 659 | 659 | |
| 660 | 660 | MediaWiki 1.7 requires PHP 5 (5.1 recommended). PHP 4 is no longer supported. |