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
Renee ProrokRenee Prorok 

Prevent users from Replying to emails if they don't have access to edit specific case record types

I have a sharing rule that only allows certain asssociates to edit cases with certain record types.  When they click "Edit" on a case that is a record type they don't have write access to, they get an error, which is what we want.  However, if they try to reply to an email related to that case, they can without an issue.  How can we prevent this?

I prefer something declarative, but if that's not possible, I will use code.
SonamSonam (Salesforce Developers) 
It would be tough to implement this declaratively as I understand this user has EDIT access to this object's record in the profile and you are restricting EDIT access using a trigger or something else - AFAIK you will have to go through the code route.