load the ACL
This commit is contained in:
parent
3a1ce55c0f
commit
0241dd98f0
14 changed files with 438 additions and 174 deletions
|
|
@ -66,9 +66,9 @@ namespace Yavsc.Models.Blog
|
|||
return ACL?.Any(i => i.CircleId == circleId) ?? true;
|
||||
}
|
||||
|
||||
public ICircleAuthorization[] GetACL()
|
||||
public CircleAuthorization[] GetACL()
|
||||
{
|
||||
return ACL?.ToArray() ?? Array.Empty<ICircleAuthorization>();
|
||||
return ACL?.ToArray() ?? Array.Empty<CircleAuthorization>();
|
||||
}
|
||||
|
||||
public void Tag(Tag tag)
|
||||
|
|
@ -134,5 +134,16 @@ namespace Yavsc.Models.Blog
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
ICollection<CircleAuthorization> ICircleAuthorized.ACL
|
||||
{
|
||||
get
|
||||
{
|
||||
return ACL?.Select(a => new CircleAuthorization
|
||||
{
|
||||
CircleId = a.CircleId
|
||||
}).ToList() ?? new List<CircleAuthorization>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue