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 --- HBObject.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'HBObject.cs') diff --git a/HBObject.cs b/HBObject.cs index ba1c226..2962adf 100644 --- a/HBObject.cs +++ b/HBObject.cs @@ -8,8 +8,10 @@ namespace HyperBooru; public class HBObject { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - public int ObjectId { get; set; } - public Guid Guid { get; set; } = Guid.NewGuid(); - public virtual List Tags { get; set; } = new(); - public Acl? Acl { get; set; } + public int ObjectId { get; set; } + public Guid Guid { get; set; } = Guid.NewGuid(); + public virtual List Tags { get; set; } = new(); + public Acl? Acl { get; set; } + public SecurityIdentifier Owner { get; set; } = + new SecurityIdentifier(WellKnownSidType.WorldSid); } \ No newline at end of file -- cgit v1.3