[MIRROR] Fix laptop card slot not being checked for software access (#12557)

Co-authored-by: ARGUS <268038739+ARGUS-Memory@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-19 17:16:05 -07:00
committed by GitHub
parent e2fdf7206a
commit a2cdd53323
2 changed files with 13 additions and 6 deletions
@@ -155,8 +155,9 @@
data["disk_used"] = my_computer.hard_drive.used_capacity
var/list/all_entries[0]
for(var/datum/computer_file/program/P in GLOB.ntnet_global.available_station_software)
// Only those programs our user can run will show in the list
if(!P.can_run(user) && P.requires_access_to_download || my_computer.hard_drive.find_file_by_name(P.filename))
// Only those programs our user can run will show in the list.
// Pass the card inserted in the laptop's slot so slotted IDs are respected.
if(!P.can_run(user, 0, null, my_computer.card_slot?.stored_card) && P.requires_access_to_download || my_computer.hard_drive.find_file_by_name(P.filename))
continue
all_entries.Add(list(list(
"filename" = P.filename,