I'm trying to make a conditional if the current author has uploaded a featured image in a custom post, but it ain't workin' ...
<?php if (
1 == count_user_posts( get_current_user_id(), "CUSTPOSTTYPE" )
&& is_user_logged_in()
&& has_post_thumbnail()
) { ?>