fix(sector): use effective creation access and preserve corridor presentation contract
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-28 21:35:21 +02:00
parent 502e3ec4d5
commit 789fffd098
12 changed files with 73 additions and 16 deletions
+1 -1
View File
@@ -17,8 +17,8 @@ final class InvestmentCorridorContext
/** Reuse Tempo's approved provincial context; never infer a district or master link. */
public function catalogueProvinces(Opportunity $record): array
{
if ($record->primary_territory_id || $record->additionalTerritories()->exists()) return [];
if (data_get($record->workflow_context, 'corridor_agribusiness.source_sha256') !== CorridorAgribusinessOpportunities::SOURCE_HASH) return [];
if ($record->primary_territory_id || $record->additionalTerritories()->exists()) return [];
$key = $this->key($record);
return $key ? $this->provinces($key) : [];
}