Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check plan/features #216

Open
Tracked by #196
jpaulet opened this issue Aug 20, 2024 · 0 comments
Open
Tracked by #196

Check plan/features #216

jpaulet opened this issue Aug 20, 2024 · 0 comments

Comments

@jpaulet
Copy link
Member

jpaulet commented Aug 20, 2024

As Vocdoni, we need a system to verify if an organization has the necessary features enabled and if it adheres to specific usage limits based on its subscription tier.

Acceptance Criteria:

  • Subscription Tiers: Each subscription tier (e.g., Pro, Premium) must define a set of features and usage limits.
    Example structure:
    {
      "pro": {
        "max_admins": 3,
        "max_suborgs": 3,
        "voting_types": {
          "single_choice": true,
          "multiple_choice": true,
          "approval": true,
          "ranked": false,
          "participatory_budgeting": false
        },
        "features": {          
          "sms_census": false,
          "email_census": false,
          "personalization": true,
          "domain": true,
          "redirect_after_voting": true,
          "texts_customization": false
        }
      }
    }

Organization Subscription Linkage:

  • Each organization must be linked to a specific subscription plan.

Feature and Limit Validation:
When an admin attempts to:

  • Add more admins or sub-organizations
  • Enable or configure a feature
  • Perform any action restricted by the subscription plan

The system must first check if the action complies with the organization’s current subscription tier.

Upgrade Path:
If the action exceeds the allowed limits or if the feature is not enabled:

  • Display an "Upgrade Plan" popup, highlighting the benefits of higher tiers.
  • Provide a clear path to upgrade the subscription.
@jpaulet jpaulet changed the title Check permissions Check permissions/features Aug 20, 2024
@jpaulet jpaulet changed the title Check permissions/features Check plan/features Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant