changeset 5597:5ade45d93908

mod_client_management: Fix missing equality check
author Kim Alvefur <zash@zash.se>
date Fri, 14 Jul 2023 15:44:55 +0200
parents d2561c1d26f5
children b496ebc12aed
files mod_client_management/mod_client_management.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_client_management/mod_client_management.lua	Fri Jul 14 15:16:06 2023 +0200
+++ b/mod_client_management/mod_client_management.lua	Fri Jul 14 15:44:55 2023 +0200
@@ -325,7 +325,7 @@
 		elseif c_type == "software" then
 			local active_clients = get_active_clients(username);
 			for _, client in ipairs(active_clients) do
-				if client.user_agent and client.user_agent.software == c_id or user_agent_tostring(client.user_agent) then
+				if client.user_agent and client.user_agent.software == c_id or user_agent_tostring(client.user_agent) == c_id then
 					return revoke_client_access(username, client.id);
 				end
 			end