function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LuvaraLuvara 

Public with Sharing exceptions?

I've created a class for a custom global search in my Customer Portal where I want to display the portal user's Cases as part of the results.

 

My class is set as "public with sharing" so that it would inherit whatever sharing rules the user has to view cases, but right now it is showing ALL Cases within that portal users “Account”. It won’t let them click through, but the cases where they are not a contact show up in the search results.

 

If you look at the sharing button on the case, it doesn’t show the portal user as someone who has access to the case. I don't want to limit the results to only cases for the Contact related to the user - because some users have Super User access where they are not the Contact.

 

Does anyone know why this would be occuring?

 

Thanks,

 

Chris