mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
provide page only if logged and has access
This commit is contained in:
parent
b6c02c5aca
commit
f110e50d3b
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ end
|
|||
if longest_noauth_match ~= ""
|
||||
and string.len(longest_noauth_match) >= string.len(longest_protected_match)
|
||||
and string.len(longest_noauth_match) > string.len(longest_unprotected_match) then
|
||||
if hlp.is_logged_in() then
|
||||
if hlp.is_logged_in() and hlp.has_access() then
|
||||
logger.debug("Noauth "..ngx.var.uri)
|
||||
return hlp.pass()
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue