mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user