Restricts the visibility of some more variables in the VV menu (#22788)

* more admin-only vv restrictions

* even more

* hopefully the last of them
This commit is contained in:
SteelSlayer
2023-10-09 01:29:14 -05:00
committed by GitHub
parent 0512f8a674
commit dded4e54a6
3 changed files with 14 additions and 2 deletions
@@ -719,6 +719,13 @@ UI STUFF
SSdbcore.MassExecute(all_queries, TRUE, TRUE, FALSE, TRUE)
/datum/controller/subsystem/tickets/can_vv_get(var_name)
var/static/list/protected_vars = list(
"allTickets"
)
if(!check_rights(R_ADMIN, FALSE, src) && (var_name in protected_vars))
return FALSE
return TRUE
#undef TICKET_STAFF_MESSAGE_ADMIN_CHANNEL
#undef TICKET_STAFF_MESSAGE_PREFIX