oversight gone (#21072)

This commit is contained in:
Contrabang
2023-05-22 16:24:02 -04:00
committed by GitHub
parent a6934eb661
commit 9eac813007

View File

@@ -131,7 +131,8 @@
var/mob/living/carbon/human/H = usr
var/obj/item/card/id/I = H.get_idcard(TRUE)
if(istype(I))
if(ACCESS_CAPTAIN in I.access)
// You must have captain access and it must be red alert or lower (no getting off delta/epsilon)
if(ACCESS_CAPTAIN in I.access && GLOB.security_level <= SEC_LEVEL_RED)
change_security_level(text2num(params["level"]))
else
to_chat(usr, "<span class='warning'>You are not authorized to do this.</span>")