Fixed boolean auth on topflow

This commit is contained in:
Cooldude2606
2020-04-17 17:46:42 +01:00
parent ec65948b73
commit ad10ed0b5a

View File

@@ -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