gluon-web-node-role: fix node role list

Fixes: 4249d65a ("treewide: fix luacheck warnings")
Closes: #1851
(cherry picked from commit a3a8d962)
parent 0dc85a07
......@@ -18,7 +18,7 @@ s = f:section(Section, nil, translate(
o = s:option(ListValue, "role", translate("Role"))
o.default = role
for _, role_value in ipairs(site.roles.list()) do
o:value(role, site_i18n.translate('gluon-web-node-role:role:' .. role_value))
o:value(role_value, site_i18n.translate('gluon-web-node-role:role:' .. role_value))
end
function o:write(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment