Skip to content

Commit

Permalink
Fixes access to the profiler (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
Watermelon914 authored and Watermelon914 committed Dec 25, 2024
1 parent 407cccb commit 408a41b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions code/modules/admin/admin_ranks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/holder2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 408a41b

Please sign in to comment.