Don't prevent creating drafts, or you won't get to see the upgrade banner

Instead:

- Always let you create drafts when pressing "Add card"
- Prevent creations of published cards via API
- Prevent publication of cards in all cases when the limit is exceeded
This commit is contained in:
Jorge Manrubia
2025-12-15 11:07:14 +01:00
parent 7a5e29699c
commit c8330a7be8
6 changed files with 76 additions and 19 deletions
+2 -1
View File
@@ -128,8 +128,9 @@ module Fizzy
config.to_prepare do
::Account.include(Account::Billing)
::CardsController.include(Card::Limited)
::Signup.prepend(Fizzy::Saas::Signup)
CardsController.include(Card::LimitedCreation)
Cards::PublishesController.include(Card::LimitedPublishing)
Queenbee::Subscription.short_names = Subscription::SHORT_NAMES