Gives people with +DEBUG (maintainers & head admins) access to the profiler (#5252)

This commit is contained in:
Erki
2018-09-10 18:09:32 +02:00
committed by Werner
parent 13c8c4d272
commit fa82e7fbf5
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -66,6 +66,10 @@ var/list/admin_ranks = list() //list of all ranks with associated rights
C.holder = null
admins.Cut()
// Clears admins from the world config.
for (var/A in world.GetConfig("admin"))
world.SetConfig("APP/admin", A, null)
if(config.admin_legacy_system)
load_admin_ranks()
+3
View File
@@ -33,6 +33,9 @@ var/list/admin_datums = list()
rights = initial_rights
admin_datums[ckey] = src
if (rights & R_DEBUG)
world.SetConfig("APP/admin", ckey, "role=admin")
/datum/admins/proc/associate(client/C)
if(istype(C))
owner = C