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
mxravimxravi 

Security permissions issue

Case is having a private security model. 

 

Only case owners can change the data. 

 

Here there is a requirement that case creator should be able to change one of the field and not the case owner. 

 

How to go about with this? 

 

 

Alex.AcostaAlex.Acosta

If this is being done VF, I would personally compare your Case Owner(case.OwnerId) vs current user (UserInfo.getUserId()). If they don't match, then display save button. You can also do this via the validation rule as long as case.OwnerId == UserInfo.getUserId

I.S.KI.S.K

The below article will describe the way to define the secuiry model for any object

 

How to design your application for multiple users?

 

Regards,

Satheeskumar

Puthuvannam Technology Solutions