X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialCreateAccount.php;h=30e3833c851a2297961c250defc1bead79a1d4db;hb=e2e2859ec207dcc4810da46b8b4c96f8355202a6;hp=448637efafe1c2ce3141ed4bbb9f4d54160c0f99;hpb=4a4c24208517904e9e5aca123bc494f41960c448;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'; }