[SalesForce] How to get custom tab visibility in controller based on user profile

I have a custom tab name 'Payments' and i need to provide a short cut access link to this tab from other pages. I know how to control the visibility based on object level settings, However, in this scenario I need to check if the tab is visible by that profile/user, then only show the output link.

Can anyone please point me into right direction.

Thank you.

Best Answer

create two layout one layout contain link and oher layout without link and share 1 layout with your profile