From a76d73d9c0e9c6e60170a7a834de599d12165f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Wed, 11 Nov 2020 22:01:39 +0100 Subject: [PATCH] UserPanel: Headers can be sent with closed session --- src/Bridges/SecurityTracy/UserPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bridges/SecurityTracy/UserPanel.php b/src/Bridges/SecurityTracy/UserPanel.php index 42b6a043..88d128bf 100644 --- a/src/Bridges/SecurityTracy/UserPanel.php +++ b/src/Bridges/SecurityTracy/UserPanel.php @@ -35,7 +35,7 @@ public function __construct(Nette\Security\User $user) */ public function getTab(): ?string { - if (headers_sent() && !session_id()) { + if (headers_sent() || !session_id()) { return null; }