Changeset

12727:31d719ce8c64

mod_admin_shell: Fix display of session without role (thanks Link Mauve) This can happen to sessions before they are assigned a role
author Kim Alvefur <zash@zash.se>
date Fri, 23 Sep 2022 11:58:15 +0200
parents 12726:9f100ab9ffdf
children 12728:931a2d049a91
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Wed Sep 21 15:00:06 2022 +0100
+++ b/plugins/mod_admin_shell.lua	Fri Sep 23 11:58:15 2022 +0200
@@ -948,7 +948,7 @@
 		width = 20;
 		key = "role";
 		mapper = function(role)
-			return role.name;
+			return role and role.name;
 		end;
 	}
 };