Tightens the permissions on debug, DI panel, view variables

This commit is contained in:
Crazylemon64
2017-01-08 22:17:04 -08:00
parent cb328a1742
commit ade630f864
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
//set src in world
if(!usr.client || !usr.client.holder)
if(!is_admin(usr))
to_chat(usr, "<span class='warning'>You need to be an administrator to access this.</span>")
return
+1 -1
View File
@@ -31,7 +31,7 @@
// This bit is called when clicked in the stat panel
/obj/effect/statclick/debug/Click()
if(!usr.client.holder)
if(!is_admin(usr))
return
usr.client.debug_variables(target)
+1 -2
View File
@@ -946,8 +946,7 @@ var/list/slot_equipment_priority = list( \
add_spell_to_statpanel(S)
if(client && client.holder)
if(is_admin(src))
if(statpanel("DI")) //not looking at that panel
stat("Loc", "([x], [y], [z]) [loc]")
stat("CPU", "[world.cpu]")