How can we check whether an user has object accessibility on visualforce page?

To check whether an object has accessibility on visualforce page, use the below code


It returns true or false.

Sample code:

<apex:page >
    Accessibility for Object 'Member__c' is {!$ObjectType.Member__c.accessible}



No comments:

Post a Comment

Sharing is Caring!!! Share this with your friends!!!

submit to reddit