Require ApiKey for all actions in RadarrImport

(cherry picked from commit 19b8fbe13bf584b915a05fe9fc87622adbaee0b7)

Closes #8692
pull/8696/head
Bogdan 1 year ago
parent eeed935e3a
commit f4fe18a440

@ -120,13 +120,11 @@ namespace NzbDrone.Core.ImportLists.Radarr
if (action == "getRootFolders")
{
Settings.Validate().Filter("ApiKey").ThrowOnError();
var remoteRootfolders = _radarrV3Proxy.GetRootFolders(Settings);
var remoteRootFolders = _radarrV3Proxy.GetRootFolders(Settings);
return new
{
options = remoteRootfolders.OrderBy(d => d.Path, StringComparer.InvariantCultureIgnoreCase)
options = remoteRootFolders.OrderBy(d => d.Path, StringComparer.InvariantCultureIgnoreCase)
.Select(d => new
{
Value = d.Path,

Loading…
Cancel
Save