Access Issue with Courses "Sorry but you do not have access..."

I'm getting a "Sorry but you do not have access to this content." when students go to the course units. This happened over the weekend when I added Magic Members to my site. However, Magic Members says this isn't an issue on their side.

I'm stuck...

Brian

  • Vaughan
    • Support/SLS MockingJay

    Hi Brian,

    It works fine with the magic members plugin disabled.

    I can't seem to get any of the protection rules working though.

    I really don't think this is an issue with coursepress plugin at all.

    One thing I am noticing tho, is it isn't asking me to pay for the course.

    Can you follow the flowchart on the following page to determine if there's another plugin conflicting?

    Hi Brian,

    It works fine with the magic members plugin disabled.

    I can't seem to get any of the protection rules working though.

    I really don't think this is an issue with coursepress plugin at all.

    One thing I am noticing tho, is it isn't asking me to pay for the course.

    Can you follow the flowchart on the following page to determine if there's another plugin conflicting?

    https://premium.wpmudev.org/manuals/getting-support/

    Thanks

  • brian_becker
    • Site Builder, Child of Zeus

    I had an idea this morning that I'm wondering about. I know that once a user is logged in the users wp_capabilities are cached. Is it possible to overwrite those capabilities but NOT let that be pushed back into the database? In other words, could Magic Members be changing the permissions ONLY on the cached object?

    I submitted this to Magic Members:

    Is it possible you are over-writing permissions? The way CoursePressPro handles access to the modules is that the user is assigned permissions in wp_capabilities meta_key.

    If we disable MagicMembers then these wp_capabilities are processed correctly.
    With MagicMembers the users wp_capabilities are NOT processed correctly.
    - even though they are still in the database wp_usermeta

    Is it possible that your code is re-writing the user's object permissions and overwriting the ones that are there?

    Brian

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.