mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #2803 from CHOMPStation2/Razgriz1032-patch-6
Fix loading admin ranks if NOT using legacy system
This commit is contained in:
@@ -68,9 +68,9 @@ var/list/admin_ranks = list() //list of all ranks with associated rights
|
|||||||
C.remove_admin_verbs()
|
C.remove_admin_verbs()
|
||||||
C.holder = null
|
C.holder = null
|
||||||
GLOB.admins.Cut()
|
GLOB.admins.Cut()
|
||||||
|
load_admin_ranks() //CHOMP Edit: moved this from "f(config.admin_legacy_system)" and put it here instead, literally just moved it 3 lines.
|
||||||
|
|
||||||
if(config.admin_legacy_system)
|
if(config.admin_legacy_system)
|
||||||
load_admin_ranks()
|
|
||||||
//Clear profile access
|
//Clear profile access
|
||||||
for(var/A in world.GetConfig("admin"))
|
for(var/A in world.GetConfig("admin"))
|
||||||
world.SetConfig("APP/admin", A, null)
|
world.SetConfig("APP/admin", A, null)
|
||||||
|
|||||||
Reference in New Issue
Block a user