• Resolved spoujol

    (@spoujol)


    Hi,
    I would like to have some users with Custom Editor Role ( can create, read modify pages, articles and few other things ), but I would like to prevent them from modifying the “UM content restrictions” on pages and articles.
    Is it possible?

    Thanks

    Stephane

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @spoujol

    The following code snippets will display UM Content Restriction settings for Adminitrator or users with the manage_options capability only.

    add_action( 'add_meta_boxes', function(){
        
        if( ! current_user_can("manage_options") ){
            remove_meta_box( 'um-admin-restrict-content', 'Page', 'normal');
            remove_meta_box( 'um-admin-restrict-content', 'Post', 'normal');
        }
    }, 2 );

    Regards,

    Thread Starter spoujol

    (@spoujol)

    Thanks, that works perfectly

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @spoujol

    Thanks for letting us know. I am closing this thread now.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Role to restrict access’ is closed to new replies.