Query a Custom Setting to find Current User’s permissions
I have created a custom setting from which I am able to restrict access to editing a text box on certain Visual Force pages. This works great. However I am running into an issue when I want to query against the custom setting to find out theuser’s permissions via the API.
From my APEX code I am able to do the following to get the Instance value of the custom setting based on the currentuser’s PID
How can I accomplish the same thing using a SOQL query?