Shop page custom buttons which is visible to only administrator

you can use the following code to check if a user is logged in and has a valid role.

add_action( 'woocommerce_after_shop_loop_item', 'product_visibility_button', 5 );
function product_visibility_button() {

    if ( is_user_logged_in() ) {
        $user = wp_get_current_user();
        if ( in_array( 'administrator', (array) $user->roles ) ) {
            echo '<div>';
            echo '<a class="button" style="margin:10px">BTN1</a>';
            echo '<a class="button" style="margin:10px">BTN1</a>';
            echo '</div>';
        }
    }
}