mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Merge pull request #158 from YunoHost/dont_set_header_unallowed_users
Don't set header if user don't have access
This commit is contained in:
commit
286eb771a7
1 changed files with 3 additions and 2 deletions
|
@ -320,8 +320,9 @@ if longest_unprotected_match ~= ""
|
|||
and string.len(longest_unprotected_match) > string.len(longest_protected_match) then
|
||||
if hlp.is_logged_in() then
|
||||
serveYnhpanel()
|
||||
|
||||
hlp.set_headers()
|
||||
if hlp.has_access() then
|
||||
hlp.set_headers()
|
||||
end
|
||||
end
|
||||
logger.debug(ngx.var.uri.." is in unprotected_urls")
|
||||
return hlp.pass()
|
||||
|
|
Loading…
Add table
Reference in a new issue