From ad10ed0b5af9819591672145e76d742ec9e26cb1 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 17 Apr 2020 17:46:42 +0100 Subject: [PATCH] Fixed boolean auth on topflow --- expcore/gui/top_flow.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/expcore/gui/top_flow.lua b/expcore/gui/top_flow.lua index 1f50fc47..3001d88d 100644 --- a/expcore/gui/top_flow.lua +++ b/expcore/gui/top_flow.lua @@ -73,7 +73,8 @@ function Gui.update_top_flow(player) end -- Set the visible state - element.visible = is_visible and authenticator(player) or false + local allowed = type(authenticator) == 'function' and authenticator(player) or authenticator + element.visible = is_visible and allowed or false end end