You need to sign in to do that
Don't have an account?
sfdcraj
By passing user profile object permissions in visual force page
Hi,
i have a custom object PROJECT and a custom profile TEST . The TEST profile does not have CREATE permission on PROJECT so he cannot see the NEW BUTTON on the PROJECT object home page.
now I have a visual force page which is mirror of project page layout . User will be able to fill in all required project fields and will be able to save the record in this visual force page to object PROJECT.
now as user profile does not have CREATE access to PROJECT , he is not able to create the record in visual force page. All the fields are read only for him in the visual force page .
I don't want to give him create access but he should be able to create the object record from visual force page. Is there any way I could by pass the object permissions of the profile .
i tried key words WITH SHARING and WITHOUT SHARING but dint workout
i have a custom object PROJECT and a custom profile TEST . The TEST profile does not have CREATE permission on PROJECT so he cannot see the NEW BUTTON on the PROJECT object home page.
now I have a visual force page which is mirror of project page layout . User will be able to fill in all required project fields and will be able to save the record in this visual force page to object PROJECT.
now as user profile does not have CREATE access to PROJECT , he is not able to create the record in visual force page. All the fields are read only for him in the visual force page .
I don't want to give him create access but he should be able to create the object record from visual force page. Is there any way I could by pass the object permissions of the profile .
i tried key words WITH SHARING and WITHOUT SHARING but dint workout
Standard Controllers respect profile permissions but Custom Controllers do not.
Regards,
Satish Kumar
will try that
regards,
pruthvi