Don't set header if user don't have access

This commit is contained in:
Josué Tille 2020-03-27 15:30:52 +01:00 committed by Alexandre Aubin
parent 9844703c0e
commit fb910facec

View file

@ -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()