瀏覽代碼

[Éligibilité] Correctif tunnel

packProduct
Guillaume 3 年之前
父節點
當前提交
3c678534c7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      EventSubscriber/User/UserRolesEventSubscriber.php

+ 1
- 1
EventSubscriber/User/UserRolesEventSubscriber.php 查看文件

@@ -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…
取消
儲存