diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-29 16:20:23 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-29 16:28:00 +1000 |
| commit | c5ff0b57a12b605a5ae5ae8a92ce7a4e8eaec77a (patch) | |
| tree | a59c3ef10b277a7733a274f107472dc8f00cfc9a /Principal.cs | |
| parent | 76e4bf609c3d196bd20619188a317fca66f4a04a (diff) | |
Separated HBPrincipal into IPrincipal and LocalPrincipal
Diffstat (limited to 'Principal.cs')
| -rw-r--r-- | Principal.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Principal.cs b/Principal.cs index 677f926..3e1a607 100644 --- a/Principal.cs +++ b/Principal.cs @@ -1,14 +1,10 @@ -using Microsoft.EntityFrameworkCore; -using System.Security.Principal; +namespace HyperBooru; -namespace HyperBooru; - -[Index(nameof(Name))] -public class Principal { +public interface IPrincipal { public string Name { get; set; } public SecurityIdentifier Sid { get; set; } } -public class User : Principal {} +public interface IUser : IPrincipal {} -public class Group : Principal {}
\ No newline at end of file +public interface IGroup : IPrincipal {}
\ No newline at end of file |
