Hiding attachment from the task record for a particular user like- assigned_to, Not based on role

Akhilesh12
Tera Contributor

I have a requirement that the attachment to the task record should not be visible to the "assigned to" in the form header and also in the activity stream or from portal. means It should not be visible to "assigned to" anywhere. Can anyone please suggest how to achieve this?

5 REPLIES 5

Tony Chatfield1
Kilo Patron

Hi, can you clarify the business driver behind this requirement?

How do your assignees access attachments related to the task if they cannot see them?
The expectations of most platform users (for any platform) would be that if they add an attachment to a task then it will be visible by the people working on the task, otherwise the attachment would add no value and with this in mind it might just be easier to disable attachments for the tables involved?

If you do need to disable attachment visibility for assignee's then I would look at updating the ACL's on the sys_attachment table.

 

 

Hi, The requirement is that if assignee uploads some document then it should not be visible to requester, but if requester upload document then it should be visible to assigned to and requester both. How to hide specific document uploaded by assignee, from requester?

I would think you will need to look at scripted ACL's on sys_attachment table.

Vaishnavi Lathk
Mega Sage
Mega Sage

Just write an onload client script to read the user role and if the user doesn't have the appropriate roles then just

 

g_form.disableAttachments();

Regards,

Vaishnavi