From b2b2544041f6bece1632a6a3ba5ee07a36c59397 Mon Sep 17 00:00:00 2001 From: Mikal Stordal Date: Fri, 3 Nov 2023 04:29:40 +0100 Subject: [PATCH] fix: fix disabled state in api for non-general commands when network is not available. --- Shoko.Server/Repositories/Direct/CommandRequestRepository.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Shoko.Server/Repositories/Direct/CommandRequestRepository.cs b/Shoko.Server/Repositories/Direct/CommandRequestRepository.cs index fc94f334b..94a05be77 100644 --- a/Shoko.Server/Repositories/Direct/CommandRequestRepository.cs +++ b/Shoko.Server/Repositories/Direct/CommandRequestRepository.cs @@ -169,9 +169,6 @@ private int[] GetExecutableCommands(IEnumerable commands, IConnectivityServ public bool CheckIfCommandRequestIsDisabled(CommandRequestType type, IConnectivityService connectivityService) { - if (!CommandTypesGeneral.Contains((int)type)) - return false; - var udpBanned = connectivityService.IsAniDBUdpBanned; var networkUnavailable = !connectivityService.NetworkAvailability.HasInternet(); var udpUnavailable = !connectivityService.IsAniDBUdpReachable;