From d448a851a697207e4215ea356cc2847c96efda86 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sat, 29 Aug 2020 12:36:06 -0400 Subject: [PATCH] Give admin account WriteUsers on reset --- src/Tgstation.Server.Host/Database/DatabaseSeeder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Database/DatabaseSeeder.cs b/src/Tgstation.Server.Host/Database/DatabaseSeeder.cs index 2bb5265c16..962e88e1df 100644 --- a/src/Tgstation.Server.Host/Database/DatabaseSeeder.cs +++ b/src/Tgstation.Server.Host/Database/DatabaseSeeder.cs @@ -218,7 +218,7 @@ namespace Tgstation.Server.Host.Database } /// - /// Changes the admin password in back to it's default and enables the account + /// Changes the admin password in back to it's default, enables the account, and gives it access. /// /// The to reset the admin password for /// The for the operation @@ -229,6 +229,7 @@ namespace Tgstation.Server.Host.Database if (admin != null) { admin.Enabled = true; + admin.AdministrationRights |= AdministrationRights.WriteUsers; cryptographySuite.SetUserPassword(admin, Api.Models.User.DefaultAdminPassword, false); }