Skip to content

Commit

Permalink
Added new rychle-predlzenie-predplatneho sales funnel
Browse files Browse the repository at this point in the history
remp/crm#3288
- Added `FastRenewalSalesFunnelVariablesDataProvider` data provider which handles adding needed variables
- Added `actionOut` logout action to `InternalModule` `SignPresenter`
- Added `SalesFunnelVariablesDataProvider` which provides logout link for sales funnels
- Added missing redirect validation in `SignPresenter::getRedirectUrl`
- Refactored `SalesFunnelFrontendPresenter::validateFunnel` to call `BasePresenter::onlyLoggedIn` instead of redirecting to custom login page
  • Loading branch information
zoldia committed Nov 22, 2024
1 parent 55b66b2 commit 85dc7ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Presenters/SalesFunnelFrontendPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ private function validateFunnel(ActiveRow $funnel = null)
}

if ($funnel->only_logged && !$this->getUser()->isLoggedIn()) {
$this->redirectOrSendJson('signIn', [
'referer' => $this->getParameter('referer'),
'funnel' => $this->getParameter('funnel'),
]);
$this->onlyLoggedIn();
}

if ($funnel->only_not_logged && $this->getUser()->isLoggedIn()) {
Expand Down

0 comments on commit 85dc7ab

Please sign in to comment.