From e7304108e2cfc3ca1fc9a8cfaf7c0c77c705b653 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 26 Feb 2024 09:48:54 +1100 Subject: [PATCH] Panic bunker fix (#25538) * Panic bunker fix I admin * tired (cherry picked from commit b26acc95475a9ae2000fddcfb2bee7d058b4122c) --- Content.Server/Connection/ConnectionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Connection/ConnectionManager.cs b/Content.Server/Connection/ConnectionManager.cs index 57d2e162af7..c1d353d37fd 100644 --- a/Content.Server/Connection/ConnectionManager.cs +++ b/Content.Server/Connection/ConnectionManager.cs @@ -110,7 +110,7 @@ namespace Content.Server.Connection var adminData = await _dbManager.GetAdminDataForAsync(e.UserId); - if (_cfg.GetCVar(CCVars.PanicBunkerEnabled)) + if (_cfg.GetCVar(CCVars.PanicBunkerEnabled) && adminData == null) { var showReason = _cfg.GetCVar(CCVars.PanicBunkerShowReason); var customReason = _cfg.GetCVar(CCVars.PanicBunkerCustomReason);