- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2017 04:32 AM
HI all,
when you open incident form on the top right header label there is manage attachments button(paper clip icon).
i want it to be visible only user with some particular role (like only admin can see that icon) for all others its hidden.
Pls tell me what are the ways to achieve it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 02:38 AM
k, then undo everything done so far.
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 02:21 AM
I wont say that is a good approach to go. Do you want restriction based on role on just one table or all?
Also restriction will be just to add attachments or read also?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 02:33 AM
I want to restrict only to one table based on user role.
restriction will be to hide that paper clip icon when user logs in and open the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 02:38 AM
k, then undo everything done so far.
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2017 09:08 PM
it worked,
and now to learn any other implementations.
can you tell me how to do that using ACL, which you have suggested earlier.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 09:02 AM
Using ACLs you could have controlled who could read / write the attachments.
For that you have to crate new ACLs on sys_attachment table(one for read and one for write).
But what I suggested which you have implemented is more neat and straight way to do it, especially for your specific requirement