Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author bhaldie

    (@bhaldie)

    If you goto setting then hide things then hide all post will get the desired results.

    Thread Starter keneastwood

    (@keneastwood)

    Tried that. Doesn’t work. It’s still there. Have cleared cache and browser cache.

    Thoughts?

    Ken

    Plugin Author bhaldie

    (@bhaldie)

    Not near a computer this week will let u know on Monday

    Still Doesn’t work..

    Plugin Author bhaldie

    (@bhaldie)

    im not having much luck recreating your issue, on all my test environments this works. I will keep testing but I have nothing to report right now.

    I’m having the same issue… I need to remove that. I need to disable the Goto Post item from the dropdown menu

    Plugin Author bhaldie

    (@bhaldie)

    in the meantime you can edit this file docs-rights.php and change line 60 to return false;

    function mdocs_check_post_rights($the_mdoc) {
           global $current_user;
    	if(empty($current_user->roles)) $current_user->roles[0] = 'none';
    	$hide_all_post = get_option('mdocs-hide-all-posts');
    	$hide_all_post_non_members = get_option('mdocs-hide-all-posts-non-members');
    	$mdocs_view_private = get_option('mdocs-view-private');
    	$post_status = get_post_status($the_mdoc['parent']);
    	$is_allow = false;
    	// ADMINS GET FULL RIGHTS FOR EVERY FILE
    	if(current_user_can( 'manage_options' )) $is_allowed = true;
    	// OWNER RIGHTS
    	if($current_user->user_login == $the_mdoc['owner']) $is_allowed = true;
    	// VIEW PRIVATE POSTS
    	foreach($mdocs_view_private as $index => $role) {
    		if(in_array($index, $current_user->roles)) { $is_allow = true; break; }
    	}
    	// PUBLIC POST ONLY
    	if($post_status == 'publish') {
    		// HIDE ALL POSTS
    		if($hide_all_post == false && $hide_all_post_non_members == false) $is_allow = true;
    		// HIDE ALL POST NON MEMBERS
    		if(is_user_logged_in() == true && $hide_all_post_non_members == true) $is_allow = true;
    	}
    	return false;
    }

    Thank you…. that worked perfect!!!

    Plugin Author bhaldie

    (@bhaldie)

    no problem.

    Dirty way…

    .mdocs-dropdown-menu li:last-child {
    display: none;
    }

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Disable Goto Post from dropdown’ is closed to new replies.