25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
--- a/app/Services/LegacyContent.php
|
|
+++ b/app/Services/LegacyContent.php
|
|
@@ -18,6 +18,11 @@
|
|
{
|
|
public function available(): bool
|
|
{
|
|
+ // Explicit delivery gate; document publication and access checks remain independent.
|
|
+ if (config('portal.legacy_content_enabled', false)) {
|
|
+ return true;
|
|
+ }
|
|
+
|
|
if (! config('portal.legacy_content_qa_enabled') || ! app()->environment('testing')
|
|
|| config('database.connections.pgsql.host') !== '127.0.0.1'
|
|
|| config('database.connections.pgsql.url') || (int) config('database.connections.pgsql.port') !== 55441) {
|
|
--- a/config/portal.php
|
|
+++ b/config/portal.php
|
|
@@ -2,6 +2,7 @@
|
|
|
|
return [
|
|
'organization_country_enabled' => env('PORTAL_ORGANIZATION_COUNTRY_ENABLED', false),
|
|
+ 'legacy_content_enabled' => env('PORTAL_LEGACY_CONTENT_ENABLED', false),
|
|
'legacy_content_qa_enabled' => env('PORTAL_LEGACY_CONTENT_QA_ENABLED', false),
|
|
'profile_access_enabled' => (bool) env('PORTAL_PROFILE_ACCESS_ENABLED', false),
|
|
// Prepare and audit assignments without opening operational opportunity routes.
|