plugins/mod_authz_internal.lua
changeset 12744 f58c6ae5edc1
parent 12737 2167e1639aab
child 12924 cdb996637b08
equal deleted inserted replaced
12743:0dc80024fdd2 12744: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