changeset 4358:d3e0fe470877

mod_http_admin_api: Ensure 'reusable' flag is always present on an invite
author Matthew Wild <mwild1@gmail.com>
date Tue, 19 Jan 2021 20:35:08 +0000
parents a49ca492e621
children 5dbce7f35aa0
files mod_http_admin_api/mod_http_admin_api.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua	Tue Jan 19 20:34:23 2021 +0000
+++ b/mod_http_admin_api/mod_http_admin_api.lua	Tue Jan 19 20:35:08 2021 +0000
@@ -63,7 +63,7 @@
 	return {
 		id = token_info.token;
 		type = token_info.type;
-		reusable = token_info.reusable;
+		reusable = not not token_info.reusable;
 		inviter = token_info.inviter;
 		jid = token_info.jid;
 		uri = token_info.uri;