Fix things

This commit is contained in:
Cyberboss
2018-07-20 17:39:58 -04:00
parent 12671f0247
commit 751f86d186
4 changed files with 3 additions and 19 deletions
@@ -24,11 +24,5 @@ namespace Tgstation.Server.Api.Models
/// </summary>
[Permissions(WriteRight = AdministrationRights.ChangeVersion)]
public Version CurrentVersion { get; set; }
/// <summary>
/// Users in the <see cref="Internal.ServerSettings.SystemAuthenticationGroup"/>
/// </summary>
[Permissions(DenyWrite = true)]
public IReadOnlyList<User> Users { get; set; }
}
}
@@ -13,9 +13,9 @@ namespace Tgstation.Server.Api.Rights
/// </summary>
None = 0,
/// <summary>
/// User can change <see cref="Models.Internal.ServerSettings.SystemAuthenticationGroup"/>
/// User can change <see cref="Models.Internal.ServerSettings.UpstreamRepository"/>
/// </summary>
ChangeAuthenticationGroup = 1,
SetUpstreamRepository = 1,
/// <summary>
/// User can change <see cref="Models.Internal.ServerSettings.EnableTelemetry"/>
/// </summary>
@@ -31,10 +31,6 @@ namespace Tgstation.Server.Api.Rights
/// <summary>
/// User can change <see cref="Models.Administration.CurrentVersion"/>
/// </summary>
ChangeVersion = 16,
/// <summary>
/// User can change <see cref="Models.Internal.ServerSettings.UpstreamRepository"/>
/// </summary>
SetUpstreamRepository = 32
ChangeVersion = 16
}
}
@@ -109,7 +109,6 @@ namespace Tgstation.Server.Host.Models
modelBuilder.Entity<RevisionInformation>().HasIndex(x => x.Commit).IsUnique();
var user = modelBuilder.Entity<User>();
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);
@@ -20,11 +20,6 @@ namespace Tgstation.Server.Host.Security
/// </summary>
string Username { get; }
/// <summary>
/// Groups the user is in
/// </summary>
IEnumerable<string> Groups { get; }
/// <summary>
/// Clone the <see cref="ISystemIdentity"/> creating another copy that must have <see cref="IDisposable.Dispose"/> called on it
/// </summary>