Merge pull request #8086 from GinjaNinja32/apcfix

Fixes possible href exploit with APCs
This commit is contained in:
PsiOmegaDelta
2015-02-08 21:04:45 +01:00
+5
View File
@@ -888,6 +888,11 @@
if(!can_use(usr, 1))
return 1
if(!istype(usr, /mob/living/silicon) && locked)
// Shouldn't happen, this is here to prevent href exploits
usr << "You must unlock the panel to use this!"
return 1
if (href_list["lock"])
coverlocked = !coverlocked