diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-20 12:45:59 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-20 12:45:59 +1000 |
| commit | fbaa4e43709a96774ebe42b7ec5908c1c0f310d7 (patch) | |
| tree | 04293c8a78911f0180f9ab862365cc12fa7bcc43 /Acl.cs | |
| parent | ccad8db591129f5a9effb6469b477bb5c23ee229 (diff) | |
Added security migration
Diffstat (limited to 'Acl.cs')
| -rw-r--r-- | Acl.cs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } } |
