restores access to invisible posts
This commit is contained in:
parent
d21a469ff6
commit
30a8ac75ec
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ namespace Yavsc.Controllers
|
|||
if (usercircles != null) {
|
||||
posts = _context.Blogspot.Include(
|
||||
b => b.Author
|
||||
).Include(p=>p.ACL).Where(p=>p.Visible && (p.ACL.Count == 0 || p.ACL.Any(a=> usercircles.Contains(a.CircleId))));
|
||||
).Include(p=>p.ACL).Where(p=> p.AuthorId == uid || p.Visible && (p.ACL.Count == 0 || p.ACL.Any(a=> usercircles.Contains(a.CircleId))));
|
||||
/* posts = _context.Blogspot.Include(
|
||||
b => b.Author
|
||||
).Include(p=>p.ACL).Where(p=>p.Visible || p.ACL.Any(a => usercircles.Contains(a.Allowed)
|
||||
|
|
@ -61,7 +61,7 @@ namespace Yavsc.Controllers
|
|||
else {
|
||||
posts = _context.Blogspot.Include(
|
||||
b => b.Author
|
||||
).Include(p=>p.ACL).Where(p=>p.Visible && p.ACL.Count == 0);
|
||||
).Include(p=>p.ACL).Where(p=>p.AuthorId == uid || p.Visible && p.ACL.Count == 0);
|
||||
}
|
||||
|
||||
return View(posts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue