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!

Price includes 1 year of updates.
$9/year per site for updates after that.

Installation Instructions

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

Active Installs
24
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