Comparison

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
comparison
equal deleted inserted replaced
12726:9f100ab9ffdf 12727:31d719ce8c64
946 title = "Role"; 946 title = "Role";
947 description = "Session role"; 947 description = "Session role";
948 width = 20; 948 width = 20;
949 key = "role"; 949 key = "role";
950 mapper = function(role) 950 mapper = function(role)
951 return role.name; 951 return role and role.name;
952 end; 952 end;
953 } 953 }
954 }; 954 };
955 955
956 local function get_colspec(colspec, default) 956 local function get_colspec(colspec, default)