diff --git a/code/modules/modular_computers/file_system/programs/card.dm b/code/modules/modular_computers/file_system/programs/card.dm index 8aba016aa38..abb10e72078 100644 --- a/code/modules/modular_computers/file_system/programs/card.dm +++ b/code/modules/modular_computers/file_system/programs/card.dm @@ -18,8 +18,6 @@ var/authenticated_user /// The regions this program has access to based on the authenticated ID. var/list/region_access = list() - /// List of subordinate jobs for head roles on the authenticated ID. - var/list/head_subordinates = list() /// List of job templates that can be applied to ID cards from this program. var/list/job_templates = list() /// Which departments this program has access to. See region defines. @@ -60,14 +58,6 @@ head_types |= info["head"] job_templates |= info["templates"] - head_subordinates.Cut() - if(length(head_types)) - for(var/occupation in SSjob.occupations) - var/datum/job/job = occupation - for(var/head in head_types) - if(head in job.department_head) - head_subordinates += job.title - if(length(region_access)) minor = TRUE authenticated_user = "[id_card.name] \[LIMITED ACCESS\]" @@ -162,7 +152,7 @@ if(!computer || !authenticated_user) return TRUE if(minor) - if(!(target_id_card.trim?.assignment in head_subordinates) && target_id_card.trim?.assignment != "Assistant") + if(!(target_id_card.trim?.type in job_templates)) to_chat(usr, "Software error: You do not have the necessary permissions to demote this card.") return TRUE