Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- 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");