WIP allow blog comment
This commit is contained in:
parent
21cd878839
commit
31d4f74e6d
7 changed files with 3588 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue