+ Start a Discussion
MoreThanWYSIWYGMoreThanWYSIWYG 

Public facing page not working like it did behind the wall

So, I have a created a controller that queries a phone number and spits data out on a  VF page XML format. This works find behind the wall.

I published it to a site, however the query does not run. It looks against the Contact and Account tables. Is there something special I need to do?
Best Answer chosen by MoreThanWYSIWYG
MoreThanWYSIWYGMoreThanWYSIWYG
So, I figured it out. I had to make the class public without sharing. This causes sharing rules to NOT be enforced.

All Answers

Edwin VijayEdwin Vijay
I guess it is because of lack of Profile permissions for the Site Guest user profile. Please verify that the Sites Guest profile has acees to the fields on the Contact and Account tables.
MoreThanWYSIWYGMoreThanWYSIWYG
So, I figured it out. I had to make the class public without sharing. This causes sharing rules to NOT be enforced.
This was selected as the best answer