Merge pull request #217 from oof2win2/dev

Fix auth in GUI not working.
This commit is contained in:
Cooldude2606 authored and GitHub committed 2021-08-14 17:16:55 +01:00
commit cb9f890978
2 files changed
+15 -1

No files matched your search

+2 -1
View File
@@ -73,7 +73,8 @@ function Gui.update_top_flow(player)
end
-- Set the visible state
local allowed = type(authenticator) == 'function' and authenticator(player) or authenticator
local allowed = authenticator
if type(allowed) == 'function' then allowed = allowed(player) end
element.visible = is_visible and allowed or false
end
end