Membership
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.
To install this plugin, copy the command above to your terminal.
This plugin doesn't have any reviews.