mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Bugfix
This commit is contained in:
parent
0f599dcba5
commit
39032542d9
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ end
|
|||
function has_access (user, url)
|
||||
user = user or ngx.var.cookie_SSOwAuthUser
|
||||
url = url or ngx.var.host..ngx.var.uri
|
||||
if not conf["users"] then
|
||||
if not conf["users"] or not conf["users"][user] then
|
||||
return true
|
||||
end
|
||||
for u, _ in pairs(conf["users"][user]) do
|
||||
|
|
Loading…
Add table
Reference in a new issue