• Resolved David

    (@fouriemc)


    Hi,

    In class-points-rewards-for-woocommerce-public.php on line 244 you have:
    if ( in_array( 'subscriber', $user->roles ) || in_array( 'customer', $user->roles ) ) {

    Please consider:
    if ( current_user_can('read') ) {

    ( Refer https://wordpress.org/support/article/roles-and-capabilities/#read )

    As an administrator on the site without the user roles you are looking for, the points menu does not show up for me in “My Account”, which lead me to think your plugin is broken. Defining a minimum capability eliminates that issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thanks for showing your interest in our plugin.

    It seems that you are using an old version of the plugin. Please update to the latest version of the plugin. We have updated this code. Please have a look once.

    Regards,

    Thread Starter David

    (@fouriemc)

    Thanks, it was version 10.00.600000000. I downloaded version 1.2.0 and replaced it – everything working fine now.

    Great! We are glad to know that it worked for you, if further, you’ll get any concerns you can get back to us anytime.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Coding Issue with Roles/Capabilities’ is closed to new replies.