jenkins-bot has submitted this change and it was merged.

Change subject: Only list Special:CreateAccount as restricted if configured so
......................................................................


Only list Special:CreateAccount as restricted if configured so

Bug: 67549
Change-Id: I433d825d99878f385c607346bed92b01a79d9a21
---
M includes/specials/SpecialCreateAccount.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  IAlex: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialCreateAccount.php 
b/includes/specials/SpecialCreateAccount.php
index f3af312..30e3833 100644
--- a/includes/specials/SpecialCreateAccount.php
+++ b/includes/specials/SpecialCreateAccount.php
@@ -43,7 +43,7 @@
        }
 
        public function isRestricted() {
-               return true;
+               return !User::groupHasPermission( '*', 'createaccount' );
        }
 
        public function userCanExecute( User $user ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/144329
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I433d825d99878f385c607346bed92b01a79d9a21
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: PleaseStand <pleasest...@live.com>
Gerrit-Reviewer: Bartosz DziewoƄski <matma....@gmail.com>
Gerrit-Reviewer: IAlex <coderev...@emsenhuber.ch>
Gerrit-Reviewer: TTO <at.li...@live.com.au>
Gerrit-Reviewer: Talktodan <talkto...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to