Software /
code /
prosody-modules
Changeset
4359:5dbce7f35aa0
mod_http_admin_api: Fix logic bug
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 Jan 2021 20:35:33 +0000 |
parents | 4358:d3e0fe470877 |
children | 4360:76bec3f66b24 |
files | mod_http_admin_api/mod_http_admin_api.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua Tue Jan 19 20:35:08 2021 +0000 +++ b/mod_http_admin_api/mod_http_admin_api.lua Tue Jan 19 20:35:33 2021 +0000 @@ -112,10 +112,12 @@ module:log("warn", "Invalid JSON"); return 400; end + else + invite_options = {}; end local invite; - if invite_options and invite_options.reusable then + if invite_options.reusable then invite = invites.create_group(invite_options.groups, invite_options.ttl, { source = "admin_api/"..event.session.username; });