mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Allow URI without trailing /
This commit is contained in:
parent
0f45cd4b0f
commit
ec61f68df6
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ function has_access (user, url)
|
|||
user = user or ngx.var.cookie_SSOwAuthUser
|
||||
url = url or ngx.var.host..ngx.var.uri
|
||||
for u, _ in pairs(conf["users"][user]) do
|
||||
if string.starts(url, u) then return true end
|
||||
if string.starts(url, string.sub(u, 1, -2)) then return true end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue