THIS FIXES IT (well it should :) )

This commit is contained in:
Letter N
2021-02-22 21:05:07 +08:00
parent 7c0a63f729
commit 2be4c76add
9 changed files with 29 additions and 16 deletions
@@ -107,7 +107,7 @@
message.answered = answer_index
message.answer_callback.InvokeAsync()
if ("callShuttle")
if (!authenticated(usr))
if (!authenticated(usr) || !SSshuttle.canEvac(usr, TRUE))
return
var/reason = trim(params["reason"], MAX_MESSAGE_LEN)
if (length(reason) < CALL_SHUTTLE_REASON_LENGTH)
@@ -355,10 +355,10 @@
data["shuttleCalled"] = FALSE
data["shuttleLastCalled"] = FALSE
data["alertLevel"] = GLOB.security_level
data["alertLevel"] = NUM2SECLEVEL(GLOB.security_level)
data["authorizeName"] = authorize_name
data["canLogOut"] = !issilicon(user)
data["shuttleCanEvacOrFailReason"] = SSshuttle.canEvac(user)
data["shuttleCanEvacOrFailReason"] = SSshuttle.canEvac(user, TRUE)
if (authenticated_as_non_silicon_captain(user))
data["canMessageAssociates"] = TRUE