A fast-food restaurant has been allowed to extend its opening hours after bosses acknowledged “mistakes” were made at a previous business.