check if the use of category is allowed