mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Tightens the permissions on debug, DI panel, view variables
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user