• Resolved mdmacek248

    (@mdmacek248)


    I am having trouble with the logic of the plugin. I am trying to do something simple; Restrict members from viewing any Post with a certain category. But the only way I can get this to work is the opposite, provide access to all members except the members the ones I want to restrict. Example:

    I have small site with 20 members. There are certain posts that I categorize as “Personal” and I want to restrict 2 members from seeing these posts. The only way to make this work is using reverse logic. Create an Access Rule called “Personal”. Then allow access to the 18 members who are allowed. But do not add this access level to the 2 members that I want to restrict. This is the only way I have been able to get it to work. And the problem is the 2 members can still see the picture and the beginning of the post, they just cant see the rest of it. I struggled to get this to block access and could not figure out how to add specific members to an Access rule as the plugin only shows me the synchronized roles. So I assigned roles to try and separate these members but this is not optimal.
    – 18 Members are given Editor role
    – 2 Members are given Subscriber role
    – Access Condition was All Posts/Blog Page that contained category “Personal”
    – Members Tab; Assigned Synchronized Role to “Editor”
    – Capabilities Tab and Options Tab left alone

    Am I doing something wrong? Seems like I should be able to create an Access Rule called Personal and assign the 2 members to it that I want to restrict. Then whenever any post has the category “Personal” these 2 people would not ever know because it would not show up. I really want to go back and set the user roles for all 20 members to Subscriber and then restrict just the 2 members. Is it possible to do it this way? If so can you help me understand how?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Hi,

    Thank you for the details! You are correct that the logic is reversed in the way that the conditions define what members should get exclusive access to, and not what they shouldn’t have access to.

    I agree that in your example, that does cause some overhead just to restrict access for 2 users.

    Currently it is not possible to easily change the conditions so that they define what members shouldn’t have access to, but I have noted it down so you might see it in a future version.

    If possible, I would suggest a setup like this:
    – Create an access level and give it to the 18 members (you can add multiple members by searching in the input field under the Members tab)
    – Add the Posts + Personal category to a condition group

    That way, the 2 members will not have access to this content. Under Settings, you can set this access level to be automatically given to new users if wanted.

    > And the problem is the 2 members can still see the picture and the beginning of the post

    Currently the plugin does not hide restricted content from archives, lists, widgets, etc. but this is a highly requested feature and will soon be available in an add-on.

    Thread Starter mdmacek248

    (@mdmacek248)

    Thank you for clarifying. I look forward to the future update that allows us to remove the beginning.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reverse Logic’ is closed to new replies.