```Determine allowed subcategories, optionally filtered by category.```