function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
etessetess 

Check the user's permissions through VF?

I was wondering if there is a simple way on a VisualForce page to check the current user's permissions for that particular Record (ie Read or Edit). I have some buttons that I'd like to have the visibility dependent on the User's permissions, but I'm currently setting visibility based on their Profile or Role. This is fine - but a little tedious. Is there was a simple way to see if User can Read or User can Read/Write?