summaryrefslogtreecommitdiff
path: root/Acl.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-20 12:45:59 +1000
committerJake Mannens <jake@asger.xyz>2023-09-20 12:45:59 +1000
commitfbaa4e43709a96774ebe42b7ec5908c1c0f310d7 (patch)
tree04293c8a78911f0180f9ab862365cc12fa7bcc43 /Acl.cs
parentccad8db591129f5a9effb6469b477bb5c23ee229 (diff)
Added security migration
Diffstat (limited to 'Acl.cs')
-rw-r--r--Acl.cs5
1 files changed, 4 insertions, 1 deletions
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<AclRule> Rules { get; set; }
}