Comparison

plugins/mod_authz_internal.lua @ 12740:f58c6ae5edc1

mod_authz_internal: Fix warning due to global use Thanks Menel and Martin
author Kim Alvefur <zash@zash.se>
date Tue, 04 Oct 2022 12:04:43 +0200
parent 12733:2167e1639aab
child 12920:cdb996637b08
comparison
equal deleted inserted replaced
12739:0dc80024fdd2 12740:f58c6ae5edc1
10 local host = module.host; 10 local host = module.host;
11 local host_suffix = host:gsub("^[^%.]+%.", ""); 11 local host_suffix = host:gsub("^[^%.]+%.", "");
12 12
13 local hosts = prosody.hosts; 13 local hosts = prosody.hosts;
14 local is_component = hosts[host].type == "component"; 14 local is_component = hosts[host].type == "component";
15 local host_user_role, server_user_role; 15 local host_user_role, server_user_role, public_user_role;
16 if is_component then 16 if is_component then
17 host_user_role = module:get_option_string("host_user_role", "prosody:user"); 17 host_user_role = module:get_option_string("host_user_role", "prosody:user");
18 server_user_role = module:get_option_string("server_user_role"); 18 server_user_role = module:get_option_string("server_user_role");
19 public_user_role = module:get_option_string("public_user_role"); 19 public_user_role = module:get_option_string("public_user_role");
20 end 20 end