1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Updates for blacklist rules

This commit is contained in:
David Bomba 2023-08-27 08:41:27 +10:00
parent d6cdb01021
commit 8b400020ce
3 changed files with 6 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class AccountController extends BaseController
MultiDB::findAndSetDbByAccountKey($account->key);
$cu = CompanyUser::where('user_id', $account->users()->first()->id);
$cu = CompanyUser::query()->where('user_id', $account->users()->first()->id);
$company_user = $cu->first();

View File

@ -51,7 +51,10 @@ class SendEmailRequest extends Request
{
$input = $this->all();
$settings = auth()->user()->company()->settings;
/** @var \App\Models\User $user */
$user = auth()->user();
$settings = $user->company()->settings;
if (empty($input['template'])) {
$input['template'] = '';

View File

@ -19,6 +19,7 @@ use Illuminate\Contracts\Validation\Rule;
class BlackListRule implements Rule
{
private array $blacklist = [
'pretreer.com',
'candassociates.com',
'vusra.com',
'fourthgenet.com',