From 76e4bf609c3d196bd20619188a317fca66f4a04a Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 29 Sep 2023 05:01:45 +1000 Subject: Separated Principal and LocalPrincipal types --- Principal.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Principal.cs') diff --git a/Principal.cs b/Principal.cs index 553fbec..677f926 100644 --- a/Principal.cs +++ b/Principal.cs @@ -4,14 +4,11 @@ using System.Security.Principal; namespace HyperBooru; [Index(nameof(Name))] -public class HBPrincipal : HBObject { - public string Name { get; set; } - public SecurityIdentifier Sid { get; set; } - public List MemberOf { get; set; } +public class Principal { + public string Name { get; set; } + public SecurityIdentifier Sid { get; set; } } -public class User : HBPrincipal { - public string PasswordHash { get; set; } -} +public class User : Principal {} -public class Group : HBPrincipal {} \ No newline at end of file +public class Group : Principal {} \ No newline at end of file -- cgit v1.3