wpsharks / s2member-kb

The s2Member® and s2Member® Pro Knowledge Base
9 stars 4 forks source link

Can I override cumulative level access? #264

Open raamdev opened 9 years ago

raamdev commented 9 years ago

KB Article Creation Checklist

Additional TODO list items go here.

title: Can I override cumulative Level access?
categories: questions
tags: 
author: raamdev
github-issue: 

Yes, you can do this with Custom Capabilities. While all s2Member Level access is cumulative (higher levels have access to everything granted to lower levels) you can override this behavior using Custom Capabilities.

For example, create a Custom Capability called level1 and give all your Level 1 members that Custom Capability. Then restrict all Level 1 content to both the Level 1 Membership Access and the level1 Custom Capability.

Now, if a Level 2 member comes along and does not have the level1 Custom Capability, they will not be able to access any content that requires the level1 Custom Capability. In this way, we can prevent Level 2 members from gaining access to content meant for Level 1 members.

jaswrks commented 8 years ago

This looks great like it is. However, before you publish here are some suggestions.