CategoryController updated for user context