Fix Comic Libraries with Kavita+ (#2676)

This commit is contained in:
Joe Milazzo 2024-02-01 09:31:31 -06:00 committed by GitHub
parent 93965b563d
commit 3f8659499b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -234,7 +234,7 @@ public class MetadataController(IUnitOfWork unitOfWork, ILocalizationService loc
private async Task PrepareSeriesDetail(List<UserReviewDto> userReviews, SeriesDetailPlusDto ret, AppUser user)
{
var isAdmin = User.IsInRole(PolicyConstants.AdminRole);
var isAdmin = await unitOfWork.UserRepository.IsUserAdminAsync(user);
userReviews.AddRange(ReviewService.SelectSpectrumOfReviews(ret.Reviews.ToList()));
ret.Reviews = userReviews;