From 8b82dc338c5e4a6a08cc945d2b65466743f4e352 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 23 Sep 2022 11:58:15 +0200 Subject: mod_admin_shell: Fix display of session without role (thanks Link Mauve) This can happen to sessions before they are assigned a role --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 14fab8ad..97464579 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -948,7 +948,7 @@ available_columns = { width = 20; key = "role"; mapper = function(role) - return role.name; + return role and role.name; end; } }; -- cgit v1.2.3