mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Added check that custom_gateway is the correct id in table
This commit is contained in:
parent
baf76a460d
commit
16750e83c2
@ -6,6 +6,7 @@ use App\Events\UserLoggedIn;
|
|||||||
use App\Events\UserSignedUp;
|
use App\Events\UserSignedUp;
|
||||||
use App\Libraries\HistoryUtils;
|
use App\Libraries\HistoryUtils;
|
||||||
use App\Ninja\Repositories\AccountRepository;
|
use App\Ninja\Repositories\AccountRepository;
|
||||||
|
use Utils;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Carbon;
|
use Carbon;
|
||||||
use Session;
|
use Session;
|
||||||
@ -65,5 +66,10 @@ class HandleUserLoggedIn
|
|||||||
} elseif ($account->isLogoTooLarge()) {
|
} elseif ($account->isLogoTooLarge()) {
|
||||||
Session::flash('warning', trans('texts.logo_too_large', ['size' => $account->getLogoSize() . 'KB']));
|
Session::flash('warning', trans('texts.logo_too_large', ['size' => $account->getLogoSize() . 'KB']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// check custom gateway id is correct
|
||||||
|
if (! Utils::isNinja() && Gateway::find(GATEWAY_CUSTOM)->name !== 'Custom') {
|
||||||
|
Session::flash('error', trans('texts.error_incorrect_gateway_ids'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2447,6 +2447,7 @@ $LANG = array(
|
|||||||
'credit_number' => 'Credit Number',
|
'credit_number' => 'Credit Number',
|
||||||
'create_credit_note' => 'Create Credit Note',
|
'create_credit_note' => 'Create Credit Note',
|
||||||
'menu' => 'Menu',
|
'menu' => 'Menu',
|
||||||
|
'error_incorrect_gateway_ids' => 'Error: The gateways table has incorrect ids.',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user