From fbaa4e43709a96774ebe42b7ec5908c1c0f310d7 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 20 Sep 2023 12:45:59 +1000 Subject: Added security migration --- Acl.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Acl.cs') diff --git a/Acl.cs b/Acl.cs index 581a8bc..72d0bf2 100644 --- a/Acl.cs +++ b/Acl.cs @@ -1,4 +1,6 @@ -namespace HyperBooru; +using System.ComponentModel.DataAnnotations.Schema; + +namespace HyperBooru; public enum AclRuleAction { Allow, @@ -6,6 +8,7 @@ public enum AclRuleAction { } public class Acl : HBObject { + [ForeignKey("ObjectId")] public HBObject Subject { get; set; } public List Rules { get; set; } } -- cgit v1.3