How to make this custom capability work?

I am trying to make a custom ability on my page CV people can insert and then view their CV I made a custom capability view_cv and I want for it to remove the option to view their CV.

<a class="edit btn btn-blue" href="<?php the_permalink(); ?>"><?php echo __('Check your CV '); ?></a> 

I would like for it to remove this button, how would I go about doing that? Thanks in advance!