From 408a41b0d7f7233bf3e888b5b84831b410a98053 Mon Sep 17 00:00:00 2001 From: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com> Date: Wed, 25 Dec 2024 02:30:45 +0000 Subject: [PATCH] Fixes access to the profiler (maybe) --- code/modules/admin/admin_ranks.dm | 4 ++++ code/modules/admin/holder2.dm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin_ranks.dm b/code/modules/admin/admin_ranks.dm index 94793f3b9479..c5109e3aca32 100644 --- a/code/modules/admin/admin_ranks.dm +++ b/code/modules/admin/admin_ranks.dm @@ -64,6 +64,10 @@ GLOBAL_LIST_EMPTY(admin_ranks) //list of all ranks with associated rights C.admin_holder = null GLOB.admins.Cut() + //Clear profile access + for(var/admin in world.GetConfig("admin")) + world.SetConfig("APP/admin", admin, null) + load_admin_ranks() //load text from file diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm index f202e0a6ecbe..1a61cbb4478f 100644 --- a/code/modules/admin/holder2.dm +++ b/code/modules/admin/holder2.dm @@ -46,7 +46,7 @@ GLOBAL_PROTECT(href_token) GLOB.admins |= C if(owner.admin_holder.rights & R_PROFILER) if(!world.GetConfig("admin", C.ckey)) - world.SetConfig("APP/admin", C.ckey, "role = coder") + world.SetConfig("APP/admin", C.ckey, "role=admin") /datum/admins/proc/disassociate() if(owner)