A developer is building a Visualforce page controller. Which approach correctly enforces field-level security before displaying sensitive data?
-
A
Use 'with sharing' on the controller class
-
B
Use Schema.DescribeFieldResult.isAccessible() before referencing the field value
-
C
Set the OWD to Private for the object
-
D
Use a permission set to restrict the field