Home Forums WoodMart support forum WPBakery frontend editor doesn’t work with shop manager role

WPBakery frontend editor doesn’t work with shop manager role

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #587554

    qtwrk555
    Participant

    Hi,

    shop manager role has grant “cms block” in role manager setting , frontend editor is also enabled

    in backend editor , it works

    however if I switch to frontend , it breaks and gives “you do not have access” error

    steps to reproduce:

    1) use the shop manager role access link

    2) go to HTML block /wp-admin/edit.php?post_type=cms_block

    3) edit any existing HTML block in front end mode , you will see it gives this error as my screenshot

    I have already contacted WPB support, they say to contact theme support

    and yes, I double checked the WPB role setting, shop manager is granted with editor access.

    best regards,

    • This topic was modified 5 months, 2 weeks ago by qtwrk555.
    Attachments:
    You must be logged in to view attached files.
    #587606

    Hello,

    The Shop manager cannot edit HTML blocks and there is no option to grant these rights. You will need to find a role manager plugin to rewrite the default rights.

    If you have any questions please feel free to contact us.

    Best Regards

    #587616

    qtwrk555
    Participant

    what is the permission it needed ?

    and how do you explain it works for backend editor ?

    #587632

    Hello,

    The shop manager role has no permission to edit the custom post types like HTML block. For this, you have to use any 3rd party plugin like User ROle Editor plugin to give the permission to the shop manager to edit the HTML block:
    https://wordpress.org/plugins/user-role-editor/

    Best Regards.

    #587639

    qtwrk555
    Participant

    yes, I mean what is the permission I need to grant to shop manager ?

    #587724

    Hello,

    You have to give the permission to access the backend and edit the HTML blocks.

    Best Regards.

    #587736

    qtwrk555
    Participant

    Could you please be more specific ?

    I granted shop manager with these permissions , but still can not edit it as shop manager role.

    Attachments:
    You must be logged in to view attached files.
    #587797

    qtwrk555
    Participant

    alright , I guess if you want to solve a problem , you had to do it yourself

    for anyone who may hit same issue , to allow shop manager to edit HTML block , use this code snippet

    
    function modify_html_block_access_role( $role ) {
        if ( current_user_can( 'shop_manager' ) ) {
            return 'shop_manager';
        }
        return $role;
    }
    add_filter( 'woodmart_html_block_access', 'modify_html_block_access_role' );
    • This reply was modified 5 months, 2 weeks ago by qtwrk555.
    #587944

    Sounds Great! that your issue has been solved.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘WPBakery frontend editor doesn’t work with shop manager role’ is closed to new replies.