1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

Cleaned up some validation

This commit is contained in:
Mark McDowall
2013-09-20 14:09:13 -07:00
parent a40ad82fa7
commit 5343bde070
3 changed files with 1 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ namespace NzbDrone.Api.Indexers
GetResourceAll = GetReleases;
Post["/"] = x=> DownloadRelease(this.Bind<ReleaseResource>());
PostValidator.RuleFor(s => s.DownloadAllowed);
PostValidator.RuleFor(s => s.DownloadAllowed).Equal(true);
}
private Response DownloadRelease(ReleaseResource release)