A license is a permission granted by competent authority to engage in a business or occupation or in an activity otherwise unlawful.