WIP allow blog comment

This commit is contained in:
Paul Schneider 2025-07-05 13:21:50 +01:00
commit 31d4f74e6d
7 changed files with 3588 additions and 13 deletions

View file

@ -50,8 +50,9 @@ public class PermissionHandler : IAuthorizationHandler
{
if (resource is BlogPost blogPost)
{
if (blogPost.ACL.Count==0)
return true;
return
applicationDbContext.blogSpotPublications
.Any(p=>p.BlogpostId == blogPost.Id);
}
return false;
}