mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Gives people with +DEBUG (maintainers & head admins) access to the profiler (#5252)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user