diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-28 03:14:35 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-28 03:14:35 +1000 |
| commit | bedcb6b176130fc2c6bd4657c8af4d407b64c970 (patch) | |
| tree | 974a14bb03913e3a8083a633d9de61742c86e0a1 /Acl.cs | |
| parent | bc82b2dc2f7405c0fd4d179830412ea8209137b1 (diff) | |
Updated DB schema and configured ACLs to use SIDs
Diffstat (limited to 'Acl.cs')
| -rw-r--r-- | Acl.cs | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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<AclRule> Rules { get; set; } @@ -22,11 +24,13 @@ public class Acl<T> : 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<T> : AclRule where T : Enum { |
