Home Forums WoodMart support forum Editor role users can’t edit HTML Blocks with Elementor.

Editor role users can’t edit HTML Blocks with Elementor.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #308352

    chefnelone
    Participant

    Hello,

    Editor role users can’t edit HTML Blocks with Elementor. I get a dark screen with Error 500 message.

    I have no problem with the Administrator role. I mean, I can use Elementor in HTML Blocks without problem with a Administrator user role.

    Can you help?

    #308356

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #308362

    chefnelone
    Participant

    Let me know if you need access to my site.

    #308364

    Artem Temos
    Keymaster

    Yes, please, disable all plugins temporarily and send us your admin access.

    #308489

    chefnelone
    Participant

    I created a sandbox for you. Once you fix this let me know how to reproduce in production site.

    I attached credentials in the private area.

    Steps to reproduce the issue:
    1) Login with Editor user
    2) Go to HTML Blocks: http://temp10.d523.dinaserver.com/wp-admin/edit.php?post_type=cms_block
    3) Try to edit any Html block with Elementor
    4) You will get this screen: CAPTURE

    If I switch to other Theme the issue is gone. Therefore the issue is related to your theme.

    All plugins are up to date.
    All plugins are deactivated.

    #308668

    Artem Temos
    Keymaster

    Yes, we see the problem. Please, send us your FTP access as well.

    #308705

    chefnelone
    Participant

    Hi,

    FTP credentials attached. Once you fix this let me know how to reproduce in production site. Thanks.

    #308714

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    add_filter(
    	'woodmart_html_block_access',
    	function() {
    		return 'editor';
    	}
    );
    #308715

    chefnelone
    Participant

    Hi,

    It worked. Thanks!

    #308716

    Artem Temos
    Keymaster

    Great, you are welcome!

    #309106

    chefnelone
    Participant

    Hi,

    The snippet worked. Now the editor can edit the page.
    But I have a problem which is that the administrator user can not edit the page.

    If I remove the snippets I go back to the original issue: the Admin user role can edit but the editor user role can not.

    Can you check it please? Can you make sure the new snippet will also work with the ‘shop_manager’ user role?

    #309122

    chefnelone
    Participant

    All credentials are still valid (wordpress users and FTP access).

    #309171

    Artem Temos
    Keymaster

    Try to replace the previous code with the following one

    add_filter(
    	'woodmart_html_block_access',
    	function() {
    		return 'edit_pages';
    	}
    );
    #309215

    chefnelone
    Participant

    Worked. Thanks!

    #309220

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘Editor role users can’t edit HTML Blocks with Elementor.’ is closed to new replies.