We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d06ad commit 8af36c9Copy full SHA for 8af36c9
EventSubscriber/UserStatsSubscriber.php
@@ -44,7 +44,7 @@ public function onKernelRequest(RequestEvent $event)
44
$user = $this->security->getUser();
45
$route = $event->getRequest()->get('_route');
46
47
- if ($user && $route) {
+ if ($user && $route && !$this->security->isGranted('IS_IMPERSONATOR')) {
48
49
$excludeRoute = $this->containerBag->get('fluffy_user_stats')['exclude_route'];
50
0 commit comments