mod_authz_internal: Fix warning due to global use
authorKim Alvefur <zash@zash.se>
Tue, 04 Oct 2022 12:04:43 +0200
changeset 12744 f58c6ae5edc1
parent 12743 0dc80024fdd2
child 12745 7b3deafb9162
mod_authz_internal: Fix warning due to global use Thanks Menel and Martin
plugins/mod_authz_internal.lua
--- a/plugins/mod_authz_internal.lua	Mon Oct 03 12:55:11 2022 +0200
+++ b/plugins/mod_authz_internal.lua	Tue Oct 04 12:04:43 2022 +0200
@@ -12,7 +12,7 @@
 
 local hosts = prosody.hosts;
 local is_component = hosts[host].type == "component";
-local host_user_role, server_user_role;
+local host_user_role, server_user_role, public_user_role;
 if is_component then
 	host_user_role = module:get_option_string("host_user_role", "prosody:user");
 	server_user_role = module:get_option_string("server_user_role");