diff --git a/code/modules/admin/player_panel2.dm b/code/modules/admin/player_panel2.dm index 5ad5f06946..72139127d7 100644 --- a/code/modules/admin/player_panel2.dm +++ b/code/modules/admin/player_panel2.dm @@ -291,6 +291,13 @@ GLOBAL_LIST_INIT(pp_limbs, list( if (targetMob.client) browse_messages(target_ckey = targetMob.ckey) + if ("logs") + var/source = LOGSRC_MOB + if (targetMob.client) + source = LOGSRC_CLIENT + + show_individual_logging_panel(targetMob, source) + if ("job_ban") if(targetMob.client) process_banlist(params["selected_role"], params["is_category"], params["want_to_ban"]) diff --git a/tgui/packages/tgui/interfaces/PlayerPanel2.js b/tgui/packages/tgui/interfaces/PlayerPanel2.js index d6a0bbbd25..b3178d959a 100644 --- a/tgui/packages/tgui/interfaces/PlayerPanel2.js +++ b/tgui/packages/tgui/interfaces/PlayerPanel2.js @@ -30,9 +30,6 @@ const PAGES = [ component: () => PunishmentActions, color: "red", icon: "gavel", - canAccess: data => { - return data.client_ckey; - }, }, { title: 'Feature Bans', @@ -564,21 +561,34 @@ const GeneralActions = (props, context) => { const PunishmentActions = (props, context) => { const { act, data } = useBackend(context); - const { mob_type, is_frozen, is_slept, glob_mute_bits, + const { client_ckey, mob_type, is_frozen, is_slept, glob_mute_bits, client_muted, data_related_cid, data_related_ip, data_byond_version, data_player_join_date, data_account_join_date, active_role_ban_count, current_time } = data; return (
-