Files
Investidor-V2/outputs/investmoz-orientacao-legado-consolidado-20261015/ALTERACAO-EXATA.patch
T
nala 6a76aac80f
tests / ci (push) Canceled after 0s
versao compilada 1
2026-10-16 09:17:28 +02:00

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.