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