Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,
    That code is still correct, Can you send me exactly what you are adding and where you are adding it?

    Ben

    Thread Starter mpmchugh

    (@mpmchugh)

    Hi Ben,

    I added it to our child theme’s functions.php file:

    // Email Customizer Permissions
    add_filter('kt_woomail_capability', 'custom_kt_woomail_capability');
    function custom_kt_woomail_capability( $capability ) {
     return 'edit_others_pages';
    }

    And when I log in with a Shop Manager role, both which have the required permissions, I get this error when selecting Email Customizer from the WooCommerce menu:

    You need a higher level of permission.

    Sorry, you are not allowed to customize this site.

    -Michael

    • This reply was modified 4 years, 7 months ago by mpmchugh.

    I see. I believe this “Sorry, you are not allowed to customize this site” means that you are being blocked by the customizer itself.

    Our plugin hooks into the WordPress core customizer to create the experience if your users do not have permissions to open the customizer then you won’t be able to open the email customizer even if you allow them from our side.

    I will have to consider the security implications if I make our settings override WordPress core for the email customizing page.

    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Give Additional User Roles Permissions To Edit’ is closed to new replies.