A Circle must pre-exist before beeing used by an authorization
This commit is contained in:
parent
88461786ee
commit
8f91cbed02
3 changed files with 21 additions and 6 deletions
|
|
@ -5,12 +5,10 @@ namespace Yavsc.Models.Access
|
|||
using Newtonsoft.Json;
|
||||
using Blog;
|
||||
using Yavsc.Abstract.Identity.Security;
|
||||
using Yavsc.Abstract.BlogSpot;
|
||||
|
||||
public class CircleAuthorizationToBlogPost : ICircleAuthorization
|
||||
public class CircleAuthorizationToBlogPost : PostAccessControlRulePayload
|
||||
{
|
||||
public long CircleId { get; set; }
|
||||
public long BlogPostId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("BlogPostId")]
|
||||
public virtual BlogPost Target { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue