• Resolved pablocalderon

    (@pablocalderon)


    Hi there,

    I have the same problem SomniumLucidus user has, here a transcript “I’ve placed a restriction on a page. I’ve set the content to be accessible only by logged in users with the roles of Administrator, Editor, Author, Contributor, or Subscriber. This restriction works for me: I can’t see the content when logged out, but when logged in as Admin, I can see the content. However, logged in Subscribers cannot see the content.”

    However, he added that it is problably a wordpress update but in my case i haven’t updated wordpress in almost a year. Could be also that the website i am working on at the moment doesn’t have SSL encription installed, maybe?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @pablocalderon – I believe I confirmed this but its really late here so I will retest in the morning. I have a major update coming this week already so I will get this patched in with the rest.

    Thread Starter pablocalderon

    (@pablocalderon)

    Hi there,

    Looking forward for the major update, still holding on to your solution… wanna really give you 5 stars. Thank you for your time and effort though.

    Plugin Author Daniel Iser

    (@danieliser)

    @pablocalderon – Confirming I found it. For a quick fix if you want it today edit /content-control/classses/Is.php. At line 35 insert the following:

    if ( is_string( key( $roles ) ) ) {
    	$roles = array_keys( $roles );
    }
    Thread Starter pablocalderon

    (@pablocalderon)

    Hi there again,

    Thank you so much, quick fix works like a charm!… gonna apply it to some other things around the website and see if there’s another bug. Looking forward for the big update to send you five stars your way, don’t stop that train my friend.

    Plugin Author Daniel Iser

    (@danieliser)

    @pablocalderon – v1.1.0 is out with several major fixes & enhancements.

    That said this one we felt was pretty polished and after almost a year on the repo with little to no feature requests it seems we were pretty accurate. That said we are likely adding some premium features in the way of integrations with WooCommerce, EDD & some membership plugins for locking down content based on customer data.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with the restriction that should work in the first place’ is closed to new replies.