mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 02:53:37 +08:00
When signups are prohibited, respond with HTTP 403
This commit is contained in:
parent
b60617b849
commit
2b6535525b
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user