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:
parent
d6cdb01021
commit
8b400020ce
@ -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();
|
||||
|
||||
|
@ -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'] = '';
|
||||
|
@ -19,6 +19,7 @@ use Illuminate\Contracts\Validation\Rule;
|
||||
class BlackListRule implements Rule
|
||||
{
|
||||
private array $blacklist = [
|
||||
'pretreer.com',
|
||||
'candassociates.com',
|
||||
'vusra.com',
|
||||
'fourthgenet.com',
|
||||
|
Loading…
Reference in New Issue
Block a user