Is there a way to programmatically figure out whether a certain custom permission is enabled in User profile?
The problem that I'm trying to solve – is that I need some kind of a flag for a small subset of User profiles that would allow me to build some logic on top of. Let's say, I have a visualforce page, and I want to manage visibility to certain visualforce components on this page, such that the users who have a profile with that flag will not see those components.