From a2a3d84445592f756cc14d44d5d95c06d5db2d49 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Thu, 15 Feb 2024 13:36:17 -0600 Subject: [PATCH] Restricts the visibility of some variables in the TGUI panel (#24185) --- code/modules/tgui/tgui_panel/tgui_panel.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/tgui/tgui_panel/tgui_panel.dm b/code/modules/tgui/tgui_panel/tgui_panel.dm index b76fa9f99de..893d42b9661 100644 --- a/code/modules/tgui/tgui_panel/tgui_panel.dm +++ b/code/modules/tgui/tgui_panel/tgui_panel.dm @@ -26,6 +26,12 @@ window.close() return ..() +/datum/tgui_panel/can_vv_get(var_name) + var/static/list/protected_vars = list("telemetry_connections") + if(!check_rights(R_ADMIN, FALSE, src) && (var_name in protected_vars)) + return FALSE + return TRUE + /** * public *