Changeset

4365:f975a4d31f35

mod_http_admin_api: make the api a bit less untested (read: fix bugs)
author Jonas Schäfer <jonas@wielicki.name>
date Thu, 21 Jan 2021 16:13:29 +0100 (2021-01-21)
parents 4364:49cf9d188b26
children 4366:83370df0ce4a
files mod_http_admin_api/mod_http_admin_api.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_admin_api/mod_http_admin_api.lua	Thu Jan 21 15:51:07 2021 +0100
+++ b/mod_http_admin_api/mod_http_admin_api.lua	Thu Jan 21 16:13:29 2021 +0100
@@ -270,6 +270,9 @@
 	-- Online sessions
 	do
 		local user_sessions = hosts[module.host].sessions[username];
+		if user_sessions then
+			user_sessions = user_sessions.sessions
+		end
 		local sessions = {};
 		if user_sessions then
 			for _, session in pairs(user_sessions) do