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
parent 2298a177c2
commit b1080c1e1a
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

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