- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2017 12:36 PM
Hi Guru's
Just wondering if its possible to restrict deleting attachments to the person who created the attachement AND all admins?
So the only ones that can delete the attachement from a RITM is the user that attached the file and all admins.
I have the admin restriction in place but just need help with the user that created the attachement.
Let me know what you think.
Thanks in advance.
Robert
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2017 12:55 PM
Hi Rob,
You should be able to script something like:
if (gs.getUserName() == current.sys_created_by)
Allow to delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2017 12:55 PM
Hi Rob,
You should be able to script something like:
if (gs.getUserName() == current.sys_created_by)
Allow to delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2017 02:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2017 11:58 PM
Hi Rob,
I wouldn't touch the UI Action. Just so it will get updated when a new release comes along. I think the one you have here had something like "current.isValidRecord() && current.canDelete()" as condition. What this does is to check if the user is allowed to delete (Through ACL check). So this means that instead of messing with the UI Action, you can setup a delete ACL which only returns true on admins or if it's the user that created the attachments.
Take a look here and let me know if you hit a brick wall: Access control list rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2017 12:49 PM