Fixes TGUI login exploit (#14695)

This commit is contained in:
AffectedArc07
2020-10-22 11:07:48 -04:00
committed by GitHub
parent c0fad08097
commit b4d7d6c98e
+3
View File
@@ -130,6 +130,9 @@ GLOBAL_LIST(tgui_logins)
state.name = state.id.registered_name
state.rank = state.id.assignment
state.access = state.id.access
else
to_chat(usr, "<span class='warning'>Access Denied</span>")
return
else if(login_type == LOGIN_TYPE_AI && isAI(usr))
state.name = usr.name
state.rank = "AI"