r26104 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26103‎ | r26104 | r26105 >
Date:04:25, 25 September 2007
Author:rotem
Status:old
Tags:
Comment:
Show the right message on account creation when the user is blocked.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogin.php
@@ -228,10 +228,13 @@
229229 return false;
230230 }
231231
232 - # Check anonymous user ($wgUser) limitations :
233 - if (!$wgUser->isAllowedToCreateAccount()) {
 232+ # Check permissions
 233+ if ( !$wgUser->isAllowed( 'createaccount' ) ) {
234234 $this->userNotPrivilegedMessage();
235235 return false;
 236+ } elseif ( $wgUser->isBlockedFromCreateAccount() ) {
 237+ $this->userBlockedMessage();
 238+ return false;
236239 }
237240
238241 $ip = wfGetIP();
Index: trunk/phase3/RELEASE-NOTES
@@ -70,6 +70,7 @@
7171 * (bug 8376) Special:Newpages accepts namespace in subpage form
7272 * Make input form of Special:Newpages nicer for RTL wikis
7373 * Fix namespace selection after submit of Special:Newpages
 74+* Show the right message on account creation when the user is blocked
7475
7576 === API changes in 1.12 ===
7677

Follow-up revisions

RevisionCommit summaryAuthorDate
r26135Merged revisions 26012-26133 via svnmerge from...david21:15, 25 September 2007

Status & tagging log