Remove the Edit button in posts for permalinks on certain user roles? WP 3.3

You could do something like (in your functions.php file);

if(current_user_can('member')){  

add_filter('get_sample_permalink_html', 'perm', '',4);

function perm($return, $id, $new_title, $new_slug){
    
    $post = get_post( $id );

    if( ! $post || ( $post->post_type !== 'testimonials' ) )
    {
        return $return;
    }

    return preg_replace(
        '/<span id="edit-slug-buttons">.*<\/span>|<span id=\'view-post-btn\'>.*<\/span>/i', 
        '', 
        $return
    );
}

To give credit where credit is due, everything between

if( $_GET['role'] == "member" ) {

and

}

…is directly taken from this Question & Answer HERE courtesy of Jonathan Wold

UPDATE

The conditional if statement of;

if( $_GET['role'] == "member" ) {//code here }

was replaced with,

if(current_user_can('member')){ //code here}

…in this instance.