Record Specific ACL on Attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 09:34 AM
Hi Community,
I have a custom table with records that I want to store a pdf of a legal document that has information that should only be read by a specific administrative group and the user which has signed the document.
Is there anyway to do this with ACLs on the custom table without making modifications to the sys_attachment and sys_attachment_doc tables?
Thanks,
-Mathieu
- Labels:
-
Best Practices

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 09:39 AM
Kindly refer the thread below hope it will help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 09:42 AM
That post is only regarding visibility. It does not provide any security.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 09:45 AM
then you must have to make some changes in sys_attachment table ACL

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 09:55 AM
I tried the same for HR case, in the Read ACL for sys_attachment. Can you try something like this.
//Check HR Case if user created attachment
if(current.table_name == 'hr_case'){
if(gs.hasRole('hr_basic')){
return true;
}
else{
return false;
}
}