bug fixes
This commit is contained in:
parent
9aa7b3c77d
commit
852020f98f
28 changed files with 261 additions and 234 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue