X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialCreateAccount.php;h=30e3833c851a2297961c250defc1bead79a1d4db;hb=f311f96e98b133849b505a07b0a674fdbe67025d;hp=448637efafe1c2ce3141ed4bbb9f4d54160c0f99;hpb=2b8254b2b5f5d1a698f298204410f22a393ab9fb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialCreateAccount.php b/includes/specials/SpecialCreateAccount.php index 448637efaf..30e3833c85 100644 --- a/includes/specials/SpecialCreateAccount.php +++ b/includes/specials/SpecialCreateAccount.php @@ -42,6 +42,14 @@ class SpecialCreateAccount extends SpecialRedirectToSpecial { return true; } + public function isRestricted() { + return !User::groupHasPermission( '*', 'createaccount' ); + } + + public function userCanExecute( User $user ) { + return $user->isAllowed( 'createaccount' ); + } + protected function getGroupName() { return 'login'; }