Sfoglia il codice sorgente

[Éligibilité] Correctif tunnel

packProduct
Guillaume 3 anni fa
parent
commit
3c678534c7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      EventSubscriber/User/UserRolesEventSubscriber.php

+ 1
- 1
EventSubscriber/User/UserRolesEventSubscriber.php Vedi File

@@ -63,7 +63,7 @@ class UserRolesEventSubscriber implements EventSubscriberInterface

public function setUserRoles(Request $request): bool
{
if ($this->tokenStorage && $this->tokenStorage->getToken()) {
if (!$this->merchantResolver->isOutOfMerchant() && $this->tokenStorage && $this->tokenStorage->getToken()) {
$token = $this->tokenStorage->getToken();
$sessionUser = $token->getUser();


Loading…
Annulla
Salva