aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-04 12:04:43 +0200
committerKim Alvefur <zash@zash.se>2022-10-04 12:04:43 +0200
commit988e651630d980249c8ae6ee698527094fc4d4b4 (patch)
tree537fccb59a7920e2fcfedeee32ec3dc3bbe17ab8 /plugins
parent865b6da69d39c716c9fb073d4ac79d662c901f74 (diff)
downloadprosody-988e651630d980249c8ae6ee698527094fc4d4b4.tar.gz
prosody-988e651630d980249c8ae6ee698527094fc4d4b4.zip
mod_authz_internal: Fix warning due to global use
Thanks Menel and Martin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_authz_internal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_authz_internal.lua b/plugins/mod_authz_internal.lua
index 66aa02c1..c2895613 100644
--- a/plugins/mod_authz_internal.lua
+++ b/plugins/mod_authz_internal.lua
@@ -12,7 +12,7 @@ local host_suffix = host:gsub("^[^%.]+%.", "");
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");