From 3d4bbc9bb4b100b166045bde80b3b00a2e0c3ed9 Mon Sep 17 00:00:00 2001 From: Razgriz Date: Sat, 14 Aug 2021 22:39:53 -0700 Subject: [PATCH] Fix loading admin ranks if NOT using legacy system Error found by Cadyn. We're using a database to keep track of admins, so we are using the database system, but the database system does not load from the admin_ranks file, so no admin ranks are being loaded at all. Decided to move it out of the legacy system if statement and just force it to load before deciding if its legacy or database. --- code/modules/admin/admin_ranks.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin_ranks.dm b/code/modules/admin/admin_ranks.dm index c5cfdc06c2..3f40e5ebe5 100644 --- a/code/modules/admin/admin_ranks.dm +++ b/code/modules/admin/admin_ranks.dm @@ -68,9 +68,9 @@ var/list/admin_ranks = list() //list of all ranks with associated rights C.remove_admin_verbs() C.holder = null GLOB.admins.Cut() - + load_admin_ranks() //CHOMP Edit: moved this from "f(config.admin_legacy_system)" and put it here instead, literally just moved it 3 lines. + if(config.admin_legacy_system) - load_admin_ranks() //Clear profile access for(var/A in world.GetConfig("admin")) world.SetConfig("APP/admin", A, null)