diff --git a/modules/ExpGamingCore/Gui/src/left.lua b/modules/ExpGamingCore/Gui/src/left.lua index d2116f06..c8074240 100644 --- a/modules/ExpGamingCore/Gui/src/left.lua +++ b/modules/ExpGamingCore/Gui/src/left.lua @@ -133,7 +133,7 @@ function left._prototype:open(player) local left_flow = mod_gui.get_frame_flow(player) if not left_flow[self.name] then self:first_open(player) end left_flow[self.name].style.visible = true - left_flow['gui-left-hide'].style.visible = true + if left_flow['gui-left-hide'] then left_flow['gui-left-hide'].style.visible = true end end --- Used to force the gui closed for the player diff --git a/modules/ExpGamingPlayer/polls/control.lua b/modules/ExpGamingPlayer/polls/control.lua index c989f153..6a92100d 100644 --- a/modules/ExpGamingPlayer/polls/control.lua +++ b/modules/ExpGamingPlayer/polls/control.lua @@ -250,7 +250,7 @@ ThisModule.Gui = Gui.popup{ local btn = next:draw(title) btn.style.width = 20 btn.style.height = 20 - if Role and Role.allowed(frame.player_index,'create-poll') or player.admin then + if Role and Role.allowed(frame.player_index,'create-poll') or game.players[frame.player_index].admin then local btn = create_poll:draw(title) btn.style.width = 20 btn.style.height = 20