mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 17:15:25 +01:00
jobs, access and radio to defines (#18297)
* jobs, access and radio to defines * . * . * urg * . * . * finish the radio freqs * why * . * . * ticker initial * eh --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -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)"]"
|
||||
|
||||
Reference in New Issue
Block a user