From 901deeff5919c9d23fb344ca950a69c917c3b291 Mon Sep 17 00:00:00 2001 From: js6pak Date: Wed, 21 Apr 2021 22:01:01 +0200 Subject: [PATCH] Remove ownership check from InnerVoteBanSystem --- .../Net/Inner/Objects/Components/InnerVoteBanSystem.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs b/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs index ac6304140..693489738 100644 --- a/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs +++ b/src/Impostor.Server/Net/Inner/Objects/Components/InnerVoteBanSystem.cs @@ -65,11 +65,6 @@ public override async ValueTask HandleRpcAsync(ClientPlayer sender, Client { if (call == RpcCalls.AddVote) { - if (!await ValidateOwnership(call, sender)) - { - return false; - } - Rpc26AddVote.Deserialize(reader, out var clientId, out var targetClientId); if (clientId != sender.Client.Id)