[MIRROR] jobs, access and radio to defines (#11546)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-30 18:56:12 -07:00
committed by GitHub
parent b3ad80a7f9
commit 89704592dd
353 changed files with 1904 additions and 2036 deletions
@@ -3,4 +3,4 @@
filedesc = "Alarm Monitoring (Security)"
extended_desc = "This program provides visual interface for the security alarm system."
tguimodule_path = /datum/tgui_module/alarm_monitor/security/ntos
required_access = access_security
required_access = ACCESS_SECURITY
@@ -19,7 +19,7 @@ var/warrant_uid = 0
program_menu_icon = "star"
requires_ntnet = TRUE
available_on_ntnet = TRUE
required_access = access_security
required_access = ACCESS_SECURITY
usage_flags = PROGRAM_ALL
tgui_id = "NtosDigitalWarrant"
category = PROG_SEC
@@ -73,7 +73,7 @@ var/warrant_uid = 0
// which also use RFID scanning to allow or disallow access to some functions. Anyone can view warrants, editing requires ID. This also prevents situations where you show a tablet
// to someone who is to be arrested, which allows them to change the stuff there.
var/obj/item/card/id/I = ui.user.GetIdCard()
if(!istype(I) || !I.registered_name || !(access_security in I.GetAccess()))
if(!istype(I) || !I.registered_name || !(ACCESS_SECURITY in I.GetAccess()))
to_chat(ui.user, "Authentication error: Unable to locate ID with appropriate access to allow this operation.")
return
@@ -136,7 +136,7 @@ var/warrant_uid = 0
if("editwarrantauth")
. = TRUE
if(!(access_hos in I.GetAccess())) // VOREStation edit begin
if(!(ACCESS_HOS in I.GetAccess())) // VOREStation edit begin
to_chat(ui.user, span_warning("You don't have the access to do this!"))
return // VOREStation edit end
activewarrant.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"