You need to sign in to do that
Don't have an account?

How does With Sharing effect queries?
If my apex controller uses With Sharing, how does that effect the queries? Specifically, if the current user does not have permission to view a certain record X, what will be returned by the soql query if I do a Select X?
If your controller uses with sharing, then only the records for which the current user have read permission, are retrieved from the queries.
If the user does not have the read permission, then those records are not retrieved...