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; resolver local=on ipv6=off;
init_worker_by_lua_block { init_worker_by_lua_block {
function check_role (res, role) function check_role (res, role)
if res.user.roles == nil then if res.user.roles == nil then
return false return false
end
for _,v in pairs(res.user.roles) do
if string.lower(v) == role then
return true
end 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 end
} }
''; '';