Hide a field on a user profile if the logged in user has a specific role
You need to download and install module Field Permissions as suggested by @Pierre. 

Then click on configure link:


Here you will find that Y field on which you want to apply permissions:



Then click on User link and you will be redirected to a form:



Here you can add custom permissions like I did.