fixes a trial admin privilege escalation exploit (#27741)

Co-authored-by: ancientpower <ancientpowerer@gmail.com>
This commit is contained in:
ancientpower
2020-09-05 22:00:40 -05:00
committed by GitHub
parent 1d6c038c9b
commit 5febbc6e9b

View File

@@ -1236,7 +1236,7 @@ client/proc/check_convertables()
object = copytext(object, 1, variables_start)
var/list/matches = get_matching_types(object, /datum) - typesof(/turf, /area) //Exclude non-movable atoms
var/list/matches = get_matching_types(object, /datum) - typesof(/turf, /area, /datum/admins) //Exclude non-movable atoms
if(matches.len == 0)
to_chat(usr, "Unable to find any matches.")