This commit is contained in:
Kload 2013-10-29 14:17:49 +00:00
parent 0f599dcba5
commit 39032542d9

View file

@ -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