瀏覽代碼

Merge branch 'develop'

master
Fabien Normand 3 年之前
父節點
當前提交
5bd1cdf59d
共有 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…
取消
儲存