bug fixes

This commit is contained in:
Paul Schneider 2024-11-10 23:12:02 +00:00
commit 852020f98f
28 changed files with 261 additions and 234 deletions

View file

@ -20,6 +20,8 @@ namespace Yavsc.ViewComponents
public IViewComponentResult Invoke (ICircleAuthorized target)
{
if (target!=null)
{
var oid = target.GetOwnerId();
ViewBag.ACL = dbContext.Circle.Where(
c=>c.OwnerId == oid)
@ -41,6 +43,8 @@ namespace Yavsc.ViewComponents
Checked = target.AuthorizeCircle(c.Id),
Value = c.Id.ToString()
});
}
return View(new CirclesViewModel(target));
}
}