Diff

plugins/mod_admin_shell.lua @ 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
parent 12676:3ab3ef9584e3
child 12789:517b5702c5a1
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;
 	}
 };