@@ -27,8 +27,10 @@ class RequisitionBudgetDistributions
|
||||
: DB::getDriverName() === 'pgsql' && preg_match('/^compras_receipts_test_[a-f0-9]{12}$/D', DB::connection()->getDatabaseName());
|
||||
|
||||
$deployment = config('budget-distributions.enabled') === true;
|
||||
$qa = config('budget-distributions.qa_enabled') === true && app()->environment('testing') && $isolated;
|
||||
if (! $deployment && ! $qa) {
|
||||
$standalone = app(StandaloneRuntime::class)->enabled()
|
||||
&& app(StandaloneRuntime::class)->feature('budget-distributions', DB::connection());
|
||||
$qa = ! app(StandaloneRuntime::class)->enabled() && config('budget-distributions.qa_enabled') === true && app()->environment('testing') && $isolated;
|
||||
if (! $deployment && ! $qa && ! $standalone) {
|
||||
return false;
|
||||
}
|
||||
if ($deployment) {
|
||||
|
||||
Reference in New Issue
Block a user