fixies the refact of blog spot index

This commit is contained in:
Paul Schneider 2025-06-29 19:53:56 +01:00
commit 21cd878839
13 changed files with 46 additions and 31 deletions

View file

@ -85,7 +85,7 @@ public class PermissionHandler : IAuthorizationHandler
{
return applicationDbContext.CircleMembers
.Include(c => c.Circle)
.Where(m=>m.MemberId==user.GetUserId() && m.Circle.OwnerId == blogPost.OwnerId)
.Where(m=>m.MemberId==user.GetUserId() && m.Circle.OwnerId == blogPost.AuthorId)
.Any();
}
return true;