mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
Restricts the visibility of some variables in the TGUI panel (#24185)
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user