From b4e80a6bedd376f654753daf0d5ecbd8622a205e Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:39:28 +0100 Subject: [PATCH] [MIRROR] Protected admins can skip 2fa if the db is down. (#26751) * Protected admins can skip 2fa if the db is down. (#81823) This is basically only admins inside of the .txt and for /tg/station, only includes heads like the headmins and headcoders --------- Co-authored-by: san7890 * Protected admins can skip 2fa if the db is down. --------- Co-authored-by: Kyle Spier-Swenson Co-authored-by: san7890 --- code/modules/admin/holder2.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index e98016df74f..9d2525ed8fa 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -232,7 +232,7 @@ GLOBAL_PROTECT(href_token) return VALID_2FA_CONNECTION if (!SSdbcore.Connect()) - if (verify_backup_data(client)) + if (verify_backup_data(client) || (client.ckey in GLOB.protected_admins)) return VALID_2FA_CONNECTION else return list(FALSE, null)