mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 09:04:33 +08:00
When signups are prohibited, respond with HTTP 403
This commit is contained in:

committed by
Daniël Klabbers

parent
22b32bd601
commit
d08f851c0b
@ -72,7 +72,7 @@ class RegisterUserHandler
|
|||||||
$data = $command->data;
|
$data = $command->data;
|
||||||
|
|
||||||
if (! $this->settings->get('allow_sign_up')) {
|
if (! $this->settings->get('allow_sign_up')) {
|
||||||
$this->assertAdmin($actor);
|
$this->assertPermission($actor->can('administrate'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$password = Arr::get($data, 'attributes.password');
|
$password = Arr::get($data, 'attributes.password');
|
||||||
|
Reference in New Issue
Block a user