From bedcb6b176130fc2c6bd4657c8af4d407b64c970 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Thu, 28 Sep 2023 03:14:35 +1000 Subject: Updated DB schema and configured ACLs to use SIDs --- Acl.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Acl.cs') diff --git a/Acl.cs b/Acl.cs index 297144e..8beff0c 100644 --- a/Acl.cs +++ b/Acl.cs @@ -7,7 +7,9 @@ public enum AclRuleAction { Deny } -public class Acl : HBObject { +public class Acl { + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public int AclId { get; set; } [ForeignKey("ObjectId")] public HBObject Subject { get; set; } public List Rules { get; set; } @@ -22,11 +24,13 @@ public class Acl : Acl where T : Enum { } } -public class AclRule : HBObject { - public HBPrincipal Principal { get; set; } - public AclRuleAction Action { get; set; } +public class AclRule { + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public int AclRuleId { get; set; } + public SecurityIdentifier Principal { get; set; } + public AclRuleAction Action { get; set; } [Column(TypeName = "bigint")] - public ulong Permissions { get; set; } + public ulong Permissions { get; set; } } public class AclRule : AclRule where T : Enum { -- cgit v1.3