Plugin screenshot thumbnail 1/3
Plugin screenshot thumbnail 2/3
Plugin screenshot thumbnail 3/3

Membership helps you set up rules for granting access to your platform's Subscribers.

At its core, the plugin simply responds to lifecycle Events emitted by Commerce Subscriptions by moving the subscribing User into (and out of) User Groups, configured by way of “Grants.”

In turn, a User belonging to a User Group can be given specific Permissions, through the native Craft system—for example, if you have a paywalled section of your website containing educational materials (a la CraftQuest), you might prevent access by testing whether they're present in a particular group:

{% requireLogin %}

{% if not currentUser.isInGroup('students') %}
  {% exit 404 %}
{% endif %}

Additionally, you can check specific capabilities with the .can() method, for built-in permissions, or permissions provided by other Plugins:

{% set section = craft.app.sections.getSectionByHandle('classifieds') %}

{% if currentUser.can("createEntries:#{section.uid}") %}
    You’re ready to <a href="{{ url('account/classifieds/new') }}">create a listing</a>!
{% endif %}

For more information about how to implement Membership on your site, see the documentation.

💣 Please be aware that Subscriptions (and therefore the Membership plugin) requires Stripe Webhooks to function properly!

Standard

Plus $9/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
16
Version
2.0.2
License
Craft
Compatibility
Craft 3, Craft 4
Last release
May 1, 2023
Categories
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs