mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for custom gateway check
This commit is contained in:
parent
16c67174b6
commit
80e4c493d1
@ -80,7 +80,7 @@ class HandleUserLoggedIn
|
|||||||
if (! Utils::isNinja()) {
|
if (! Utils::isNinja()) {
|
||||||
// check custom gateway id is correct
|
// check custom gateway id is correct
|
||||||
$gateway = Gateway::find(GATEWAY_CUSTOM1);
|
$gateway = Gateway::find(GATEWAY_CUSTOM1);
|
||||||
if (! $gateway || $gateway->name !== 'Custom1') {
|
if (! $gateway || $gateway->name !== 'Custom') {
|
||||||
Session::flash('error', trans('texts.error_incorrect_gateway_ids'));
|
Session::flash('error', trans('texts.error_incorrect_gateway_ids'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user