From: Kevin Israel Date: Sat, 5 Jul 2014 20:42:55 +0000 (-0400) Subject: Only list Special:CreateAccount as restricted if configured so X-Git-Tag: 1.31.0-rc.0~15081 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=9da9183d584b2aca5d02f88994d77eb958ed24ab;p=lhc%2Fweb%2Fwiklou.git Only list Special:CreateAccount as restricted if configured so Bug: 67549 Change-Id: I433d825d99878f385c607346bed92b01a79d9a21 --- diff --git a/includes/specials/SpecialCreateAccount.php b/includes/specials/SpecialCreateAccount.php index f3af312f29..30e3833c85 100644 --- a/includes/specials/SpecialCreateAccount.php +++ b/includes/specials/SpecialCreateAccount.php @@ -43,7 +43,7 @@ class SpecialCreateAccount extends SpecialRedirectToSpecial { } public function isRestricted() { - return true; + return !User::groupHasPermission( '*', 'createaccount' ); } public function userCanExecute( User $user ) {