From 69e11f7524978f94486cca187fea67f34c8376b5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 21 Jul 2023 22:48:54 +0200 Subject: plugins: Use get_option_array for some list shaped options Passing something from module:get_option() to ipairs() suggests that the option is a list of some sort. --- plugins/mod_authz_internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_authz_internal.lua') diff --git a/plugins/mod_authz_internal.lua b/plugins/mod_authz_internal.lua index 8710b7fe..96324734 100644 --- a/plugins/mod_authz_internal.lua +++ b/plugins/mod_authz_internal.lua @@ -90,7 +90,7 @@ register_role { -- Process custom roles from config -local custom_roles = module:get_option("custom_roles", {}); +local custom_roles = module:get_option_array("custom_roles", {}); for n, role_config in ipairs(custom_roles) do local ok, err = pcall(register_role, role_config); if not ok then -- cgit v1.2.3