Skip to content

Commit

Permalink
TGS Test Merge (#7909)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Jan 7, 2025
2 parents 82e0209 + f10699e commit 0b6d82a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions code/modules/admin/admin_ranks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ 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"))
log_debug("Clearing [admin] from APP/admin.")
world.SetConfig("APP/admin", admin, null)

load_admin_ranks()

//load text from file
Expand Down
6 changes: 3 additions & 3 deletions code/modules/admin/holder2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ GLOBAL_PROTECT(href_token)
href_token = GenerateToken()
GLOB.admin_datums[ckey] = src
extra_titles = new_extra_titles
if(rights & R_PROFILER)
log_debug("Adding [ckey] to APP/admin.")
world.SetConfig("APP/admin", ckey, "role=admin")

// Letting admins edit their own permission giver is a poor idea
/datum/admins/vv_edit_var(var_name, var_value)
Expand All @@ -44,9 +47,6 @@ GLOBAL_PROTECT(href_token)
owner.tgui_say.load()
owner.update_special_keybinds()
GLOB.admins |= C
if(owner.admin_holder.rights & R_PROFILER)
if(!world.GetConfig("admin", C.ckey))
world.SetConfig("APP/admin", C.ckey, "role = coder")

/datum/admins/proc/disassociate()
if(owner)
Expand Down

0 comments on commit 0b6d82a

Please sign in to comment.