James Cole
4 years ago
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5
2 changed files with
11 additions and
1 deletions
-
app/Exceptions/ImporterErrorException.php
-
app/Http/Middleware/IsReadyForStep.php
|
|
|
@ -33,4 +33,5 @@ use Exception; |
|
|
|
class ImporterErrorException extends Exception |
|
|
|
{ |
|
|
|
public array $json; |
|
|
|
public int $statusCode = 0; |
|
|
|
} |
|
|
|
@ -108,6 +108,8 @@ trait IsReadyForStep |
|
|
|
case 'authenticate': |
|
|
|
case 'service-validation': |
|
|
|
return true; |
|
|
|
case 'define-roles': |
|
|
|
return false; |
|
|
|
case 'upload-files': |
|
|
|
if (session()->has(Constants::HAS_UPLOAD) && true === session()->get(Constants::HAS_UPLOAD)) { |
|
|
|
return false; |
|
|
|
@ -126,7 +128,10 @@ trait IsReadyForStep |
|
|
|
} |
|
|
|
return false; |
|
|
|
case 'configuration': |
|
|
|
die('must have selected bank/country, must have had redirect.'); |
|
|
|
if (session()->has(Constants::SELECTED_BANK_COUNTRY) && true === session()->get(Constants::SELECTED_BANK_COUNTRY)) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -238,6 +243,10 @@ trait IsReadyForStep |
|
|
|
$route = route('009-selection.index'); |
|
|
|
Log::debug(sprintf('Return redirect to "%s"', $route)); |
|
|
|
return redirect($route); |
|
|
|
case 'define-roles': |
|
|
|
$route = route('006-mapping.index'); |
|
|
|
Log::debug(sprintf('Return redirect to "%s"', $route)); |
|
|
|
return redirect($route); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|