mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[s] Removes protected variable exploit (#67071)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
co-authored by
Mothblocks
parent
4bd550ae3c
commit
f2dfb59ba5
@@ -29,6 +29,11 @@ GLOBAL_REAL(GLOB, /datum/controller/global_vars)
|
||||
msg = "Edit"
|
||||
return msg
|
||||
|
||||
/datum/controller/global_vars/can_vv_get(var_name)
|
||||
if(var_name == "gvars_datum_protected_varlist" || var_name == "gvars_datum_in_built_vars")
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
/datum/controller/global_vars/vv_edit_var(var_name, var_value)
|
||||
if(gvars_datum_protected_varlist[var_name])
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user