nginx: Fix indentation

This commit is contained in:
Giulio De Pasquale 2022-11-15 01:11:39 +01:00
parent d9ef1939b2
commit 1122be76bb

View File

@ -49,18 +49,18 @@
resolver local=on ipv6=off;
init_worker_by_lua_block {
function check_role (res, role)
if res.user.roles == nil then
return false
end
for _,v in pairs(res.user.roles) do
if string.lower(v) == role then
return true
function check_role (res, role)
if res.user.roles == nil then
return false
end
end
return false
for _,v in pairs(res.user.roles) do
if string.lower(v) == role then
return true
end
end
return false
end
}
'';