@@ -20,6 +20,10 @@ final class PrivateAuditAccess
|
||||
{
|
||||
$db = DB::connection();
|
||||
|
||||
if (app(StandaloneRuntime::class)->enabled()) {
|
||||
return app(StandaloneRuntime::class)->feature('private-audit', $db) && Schema::hasTable('private_audit_exports');
|
||||
}
|
||||
|
||||
return config('private-audit.qa_enabled') === true && app()->environment('testing')
|
||||
&& (($db->getDriverName() === 'sqlite' && $db->getDatabaseName() === ':memory:')
|
||||
|| ($db->getDriverName() === 'pgsql' && $db->getConfig('host') === '127.0.0.1'
|
||||
|
||||
Reference in New Issue
Block a user