Fixed Two Bugs

This commit is contained in:
Cooldude2606
2018-10-13 18:02:54 +01:00
parent dd5b1ac907
commit 50d74d5eed
2 changed files with 2 additions and 2 deletions

View File

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

View File

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