From 16fe7f6b9aa8a8d1eac9a9bbab3f6d0b4b4977c1 Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Sun, 17 Oct 2021 14:56:42 +0100 Subject: [PATCH] Fixes re-admin not working --- code/modules/admin/admin_verbs.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index dca8bd5441c..fefd5b20348 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -704,8 +704,9 @@ GLOBAL_LIST_INIT(admin_verbs_ticket, list( if(istext(flags)) flags = text2num(flags) + var/client/check_client = GLOB.directory[ckey] // Do a little check here - if(GLOB.configuration.system.is_production && (flags & R_ADMIN) && prefs._2fa_status == _2FA_DISABLED) // If they are an admin and their 2FA is disabled + if(GLOB.configuration.system.is_production && (flags & R_ADMIN) && check_client.prefs._2fa_status == _2FA_DISABLED) // If they are an admin and their 2FA is disabled to_chat(src,"You do not have 2FA enabled. Admin verbs will be unavailable until you have enabled 2FA.") // Very fucking obvious qdel(admin_read) return