Commit b5faaa9e authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

rétablissement contrôle intervenant au niveau du firewall

parent ebf1edea
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/ORM/RouteEntitiesInjector.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ class RouteEntitiesInjector implements ParamFirewallInterface
            case 'intervenant':
                if ($params[$name] !== null) {
                    $profile = $this->userManager->getProfile();
                    if (!empty($profile->getContext('intervenant'))) {
                    if ($profile?->getContext('intervenant')) {
                        // le paramètre en entrée est toujours l'intervenant courant si s'en est un
                        $intervenant               = $profile->getContext('intervenant');
                        $params[$name]             = $intervenant->getId();