Pint
This commit is contained in:
@@ -12,7 +12,8 @@ class MatrixRegisterRequest extends FormRequest
|
||||
public function authorize(): bool
|
||||
{
|
||||
$isOldEnough = $this->user()->created_at->lt(now()->subMonth());
|
||||
$noAccount = !$this->user()->matrix_id;
|
||||
$noAccount = ! $this->user()->matrix_id;
|
||||
|
||||
return $isOldEnough && $noAccount;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user