diff --git a/src/Tgstation.Server.Api/Models/Administration.cs b/src/Tgstation.Server.Api/Models/Administration.cs index 7f04e2d428..640a5c65ac 100644 --- a/src/Tgstation.Server.Api/Models/Administration.cs +++ b/src/Tgstation.Server.Api/Models/Administration.cs @@ -24,11 +24,5 @@ namespace Tgstation.Server.Api.Models /// [Permissions(WriteRight = AdministrationRights.ChangeVersion)] public Version CurrentVersion { get; set; } - - /// - /// Users in the - /// - [Permissions(DenyWrite = true)] - public IReadOnlyList Users { get; set; } } } diff --git a/src/Tgstation.Server.Api/Rights/AdministrationRights.cs b/src/Tgstation.Server.Api/Rights/AdministrationRights.cs index bc7d302397..c8992b3575 100644 --- a/src/Tgstation.Server.Api/Rights/AdministrationRights.cs +++ b/src/Tgstation.Server.Api/Rights/AdministrationRights.cs @@ -13,9 +13,9 @@ namespace Tgstation.Server.Api.Rights /// None = 0, /// - /// User can change + /// User can change /// - ChangeAuthenticationGroup = 1, + SetUpstreamRepository = 1, /// /// User can change /// @@ -31,10 +31,6 @@ namespace Tgstation.Server.Api.Rights /// /// User can change /// - ChangeVersion = 16, - /// - /// User can change - /// - SetUpstreamRepository = 32 + ChangeVersion = 16 } } diff --git a/src/Tgstation.Server.Host/Models/DatabaseContext.cs b/src/Tgstation.Server.Host/Models/DatabaseContext.cs index 8bb7a69218..5ca0997c1e 100644 --- a/src/Tgstation.Server.Host/Models/DatabaseContext.cs +++ b/src/Tgstation.Server.Host/Models/DatabaseContext.cs @@ -109,7 +109,6 @@ namespace Tgstation.Server.Host.Models modelBuilder.Entity().HasIndex(x => x.Commit).IsUnique(); var user = modelBuilder.Entity(); - user.HasIndex(x => new { x.CanonicalName, x.SystemIdentifier }).IsUnique(); user.HasIndex(x => x.CanonicalName).IsUnique(); user.HasOne(x => x.CreatedBy).WithMany(x => x.CreatedUsers).OnDelete(DeleteBehavior.Restrict); diff --git a/src/Tgstation.Server.Host/Security/ISystemIdentity.cs b/src/Tgstation.Server.Host/Security/ISystemIdentity.cs index ff2dc3482c..fecf36a60a 100644 --- a/src/Tgstation.Server.Host/Security/ISystemIdentity.cs +++ b/src/Tgstation.Server.Host/Security/ISystemIdentity.cs @@ -20,11 +20,6 @@ namespace Tgstation.Server.Host.Security /// string Username { get; } - /// - /// Groups the user is in - /// - IEnumerable Groups { get; } - /// /// Clone the creating another copy that must have called on it ///