Plans to allow a Greenock town centre flat to be used for short-term letting have been given the green light by council bosses.