From a4423405720cf0f74b209006b63f4c9b2c0f0fa4 Mon Sep 17 00:00:00 2001 From: HitPanda <104197232+EnefFlow@users.noreply.github.com> Date: Tue, 16 May 2023 17:18:00 +0300 Subject: [PATCH] fix (#71) --- Content.Server/UtkaIntegration/Commands/UtkaUnbanCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/UtkaIntegration/Commands/UtkaUnbanCommand.cs b/Content.Server/UtkaIntegration/Commands/UtkaUnbanCommand.cs index 5e24a8fd3f..94a4efac15 100644 --- a/Content.Server/UtkaIntegration/Commands/UtkaUnbanCommand.cs +++ b/Content.Server/UtkaIntegration/Commands/UtkaUnbanCommand.cs @@ -35,7 +35,7 @@ public sealed class UtkaUnbanCommand : IUtkaCommand } var adminData = await dbMan.GetAdminDataForAsync(player); - if (adminData?.AdminServer == null || ban.ServerName != "unknown" && adminData.AdminServer != ban.ServerName) + if (adminData?.AdminRank == null || ban.ServerName != "unknown" && adminData.AdminServer is not (null or "unknown") && adminData.AdminServer != ban.ServerName) { UtkaSendResponse(false); return;