[MIRROR] Fixes dumb code breaking toggle of playtime exempt status. (#3908)

* Fixes dumb code breaking toggle of playtime exempt status. (#57443)

* Fixes dumb code breaking toggle of playtime exempt status.

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2021-03-06 00:56:35 +00:00
committed by GitHub
co-authored by Timberpoes
parent 2f6f5215f0
commit 7043a45b59
+2 -4
View File
@@ -75,13 +75,11 @@
to_chat(usr, "<span class='danger'>ERROR: Insufficient admin rights.</span>", confidential = TRUE)
return TRUE
var/client/owner_client = locate(owner) in GLOB.clients
if(!owner_client)
if(QDELETED(owner))
to_chat(usr, "<span class='danger'>ERROR: Client not found.</span>", confidential = TRUE)
return TRUE
viewer_admin_datum.toggle_exempt_status(owner_client)
viewer_admin_datum.toggle_exempt_status(owner)
return TRUE
#undef JOB_REPORT_MENU_FAIL_REASON_TRACKING_DISABLED