mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-13 01:03:15 +01:00
[MIRROR] subsystem access (#12596)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
30c7a461cd
commit
9b7b9f0505
@@ -71,7 +71,7 @@
|
||||
message = "RFID card is not present in the device. Operation aborted."
|
||||
return
|
||||
running = TRUE
|
||||
target_access = get_access_by_id("[params["access_target"]]")
|
||||
target_access = SSaccess.get_access_by_id("[params["access_target"]]")
|
||||
if(GLOB.ntnet_global.intrusion_detection_enabled)
|
||||
GLOB.ntnet_global.add_log("IDS WARNING - Unauthorised access attempt to primary keycode database from device: [computer.network_card.get_network_tag()]")
|
||||
GLOB.ntnet_global.intrusion_detection_alarm = TRUE
|
||||
@@ -95,16 +95,16 @@
|
||||
var/obj/item/card/id/id_card = computer.card_slot.stored_card
|
||||
for(var/i = 1; i <= 7; i++)
|
||||
var/list/accesses = list()
|
||||
for(var/access in get_region_accesses(i))
|
||||
if(get_access_desc(access) && !(access in restricted_access_codes))
|
||||
for(var/access in SSaccess.get_region_accesses(i))
|
||||
if(SSaccess.get_access_desc(access) && !(access in restricted_access_codes))
|
||||
accesses.Add(list(list(
|
||||
"desc" = replacetext(get_access_desc(access), " ", " "),
|
||||
"desc" = replacetext(SSaccess.get_access_desc(access), " ", " "),
|
||||
"ref" = access,
|
||||
"allowed" = (access in id_card.GetAccess()) ? 1 : 0
|
||||
)))
|
||||
|
||||
regions.Add(list(list(
|
||||
"name" = get_region_accesses_name(i),
|
||||
"name" = SSaccess.get_region_accesses_name(i),
|
||||
"accesses" = accesses
|
||||
)))
|
||||
data["regions"] = regions
|
||||
|
||||
Reference in New Issue
Block a user