ID-Console Suspension instead of Termination (#3981)

The ID Console now suspends employees instead of terminating them
https://forums.aurorastation.org/viewtopic.php?f=18&t=9785
This commit is contained in:
Werner
2017-12-17 10:21:39 +01:00
committed by Erki
parent ebc9b81ee1
commit 0398b99148
3 changed files with 8 additions and 8 deletions
@@ -163,11 +163,11 @@
if(id_card)
data_core.manifest_modify(id_card.registered_name, id_card.assignment)
computer.proc_eject_id(user)
if("terminate")
if("suspend")
if(computer && can_run(user, 1))
id_card.assignment = "Terminated"
id_card.assignment = "Suspended"
remove_nt_access(id_card)
callHook("terminate_employee", list(id_card))
callHook("suspend_employee", list(id_card))
if("edit")
if(computer && can_run(user, 1))
if(href_list["name"])