paid plans disable/enable buy button

In our case, the option to purchase a certain plan depends on the member’s role, in other words certain members are not allowed to purchase certain plans. However it would be good to show them that these plans are available so they know what to do in order to be able to purchase. In short it would be great to be able to say per plan if buy button is enabled or not. Can I do this using Corvid code, and if so how can this be done? Apart from this, all the rest of paid plans does the job so I would like to avoid creating my own paid plans functionality?