mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 21:01:39 +09:00
Added a can_open function
This commit is contained in:
@@ -231,5 +231,10 @@ Gui.popup.add{
|
|||||||
direction='vertical'
|
direction='vertical'
|
||||||
}
|
}
|
||||||
draw_poll(flow)
|
draw_poll(flow)
|
||||||
|
end,
|
||||||
|
can_open=function(player)
|
||||||
|
if #_polls().old > 0 then return true
|
||||||
|
elseif Ranking.get_rank(player):allowed('create-poll') then return true
|
||||||
|
else return {'polls.no-poll'} end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user