[BUILD-472] - Protect the chatbot feature based on plan availability (PR #2201)

:link: Motivation and Context

BUILD-472: Protect the chatbot feature based on plan availability

:hammer: Description

In this pull request, I am adding a new decorator to the chatbot view function. This decorator checks if the user’s plan includes the required feature, “card_reviewer_extension,” to access the chatbot view.

:eyes: Steps to reproduce

To reproduce, check out this branch and attempt to use the chatbot with an account that has the AnkiHub AI plan on the membership. Then, try using the chatbot with another account that does not have the AnkiHub AI plan.

:camera: Screenshots

GitHub

The author of this PR, scpaes, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don’t hesitate to email us at support@codecov.io with any questions.