A bar has been granted permission to play music and serve alcohol until 4am – but only for six months.