Fixed an issue where the Subscribe button was appearing on available movies.

pull/2842/head
TidusJar 6 years ago
parent cd15e7ded7
commit 3a690e321e

@ -227,7 +227,7 @@ namespace Ombi.Core.Engine
}
var request = await RequestService.MovieRequestService.GetAll()
.AnyAsync(x => x.RequestedUserId.Equals(user.Id) && x.TheMovieDbId == viewModel.Id);
if (request)
if (request || viewModel.Available)
{
viewModel.ShowSubscribe = false;
}

Loading…
Cancel
Save