Fixed Two Bugs

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

No files matched your search

+1 -1
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