From b1080c1e1a187bd05e0efb2f9e66e3c836f3461b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 27 Mar 2020 15:30:52 +0100 Subject: [PATCH] Don't set header if user don't have access --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index 9f410e2..ff17645 100644 --- a/access.lua +++ b/access.lua @@ -318,7 +318,7 @@ end if longest_unprotected_match ~= "" and string.len(longest_unprotected_match) > string.len(longest_protected_match) then - if hlp.is_logged_in() then + if hlp.is_logged_in() and hlp.has_access() then serveYnhpanel() hlp.set_headers()