Plans to convert a former city centre bar into student accommodation have been given the green light by council development bosses.