mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
When signups are prohibited, respond with HTTP 403
This commit is contained in:
@@ -74,7 +74,7 @@ class RegisterUserHandler
|
||||
$data = $command->data;
|
||||
|
||||
if (! $this->settings->get('allow_sign_up')) {
|
||||
$this->assertAdmin($actor);
|
||||
$this->assertPermission($actor->can('administrate'));
|
||||
}
|
||||
|
||||
$password = Arr::get($data, 'attributes.password');
|
||||
|
Reference in New Issue
Block a user