@@ -132,9 +132,11 @@ class InvestorGuidance
|
||||
$actions = ['opportunities' => '/oportunidades', 'locations' => '/oportunidades?view=map', 'partners' => '/parcerias',
|
||||
'documents' => '/documentos', 'plan' => $case->submission_id && (int) $case->user_id === $actor->id ? '/investidor/manifestacoes/'.$case->submission_id : '/balcao-virtual/dossiers/'.$id,
|
||||
'simulator' => '/simulador-fiscal', 'support' => '/balcao-virtual/dossiers/'.$id];
|
||||
// The simulator recovers its current owner-scoped draft; do not pass private payload in URLs.
|
||||
// Pin the linked owner-scoped draft instead of opening another project's current draft.
|
||||
// The receiving API still enforces ownership; no private payload is carried in the URL.
|
||||
if ($case->simulation_id && $context['financial_draft'] !== null) {
|
||||
$actions['plan'] = '/simulador-fiscal';
|
||||
$actions['simulator'] = '/simulador-fiscal?draft='.rawurlencode($case->simulation_id);
|
||||
$actions['plan'] = $actions['simulator'];
|
||||
}
|
||||
$phases = $this->rules->evaluate($context['facts'], $context['evidence']);
|
||||
foreach ($phases as &$phase) {
|
||||
|
||||
Reference in New Issue
Block a user