Next 14 SaaS Boilerplate Pro DocsBuy Now ↗Buy Now ↗ (opens in a new tab)View Demo ↗View Demo ↗ (opens in a new tab)
  • Get Started
  • SaaS Structure
  • Project Structure
  • Install the Boilerplate
    • Multi-tenancy support
    • Billing and Subscriptions
    • Membership plan capabilities support
    • Organization Switcher
    • Onboarding
    • Role-based access control and permissions
    • Notifications Module
    • Ticket Support Module
    • Settings Module for Super Admins
    • Marketing Module
    • Stripe Invoices and memberships Module
    • Imagekit Integration for Media Storage
    • Internal components
    • User Management
    • Organization Profile
    • Organization (Tenants) Management
    • Subscriptions Management
    • Vercel Analytic Integration
    • SEO friendly (SSR by Next 14)
    • User Profile
    • Dashboards
    • DarkTheme
    • Responsive
    • Landing Page
    • Absolute Imports using @ prefix

On This Page

  • Permission type capabilities
  • Server Side
  • Limit type capabilities
Question? Give us feedback → (opens in a new tab)Edit this page
Features
Membership plan capabilities support

Membership for Tenants

A Tenant may have an active membership plan. This membership plan has different capabilities, these capabilities are of two types:

  • Permission
  • Limit

Permission type capabilities

Suppose the Pro plan has the PERMISSION type ability to access a certain module. In the code, we can check this as follows:

Server Side

const canAccessToSupportModule = await checkOrganizationCapability(
  organization?.id,
  "Support via ticket"
);

Limit type capabilities

Billing and SubscriptionsOrganization Switcher

The SaaS Factory Boilerplate Docs - Next 14 Pro Version