Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1370583

    Hi team,

    I would normally lock the layout editor for all non admins and give clients shop manager access so they can manage their woocommerce store without risk of accidently deleting ALB elements.

    This particular customer has asked me to keep the layout editor locked for pages but allow the use of the layout editor on posts.

    Is there a way to do this with Enfold?

    I tried using the Members plugin for user roles but it does not cover Enfold’s editor permissions.

    #1370646

    Hey Thomas,

    You can use the following filter:

    
    add_filter( 'avf_allow_drag_drop', 'custom_disable_alb_drag_drop', 100, 1 );
    

    This will hook after our filter in enfold\functions-enfold.php line 2227.

    in your function

    
    custom_disable_alb_drag_drop( $disable ) 
    {
    // add logic to decide what to do
    }
    

    return true to allow drag/drop or false to lock.

    Hope this helps you.

    Best regards,
    Günter

    #1370794

    Thanks Gunter I’ll give this a try.

    I will re-visit the site again and see if I can get this working.

    I have delivered face to face training to the client’s staff and created a simple user guide – In hope that they dont break anything!

    #1436225

    Hi Günther,

    I have a similar problem but unfortunately I don’t understand exactly the adjustments that you describe and where I have to do them in the functions-enfold.php. It would be great if you could provide more information.

    Thanks a lot
    Thorsten

    #1436232

    Hi,


    @ThorstenFB
    : You can add the avf_allow_drag_drop in the functions.php file. Usage example can be found here: https://kriesi.at/support/topic/alb-does-not-work-with-user-role-editor/#post-1293830

    Please create another thread if you need more assistance.

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Shop Manager user role permissions.’ is closed to new replies.