Prevent request forgery exploit in card.dm

This commit is contained in:
Jeremy Liberman
2014-05-15 01:02:18 -04:00
committed by ZomgPonies
parent bd249e3a53
commit 0c01c6e4df
+4 -3
View File
@@ -250,10 +250,11 @@
P.info += " [get_access_desc(A)]"
if ("terminate")
modify.assignment = "Terminated"
modify.access = list()
if (is_authenticated())
modify.assignment = "Terminated"
modify.access = list()
callHook("terminate_employee", list(modify))
callHook("terminate_employee", list(modify))
if (modify)
modify.name = text("[modify.registered_name]'s ID Card ([modify.assignment])")