- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2023 09:49 AM
When change request goes to state awaiting approval only change managers should see the attachment clip(should be able to remove and add attachments).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2023 09:19 PM
@Adam95 there can be multiple other way but I can implement in this way,
Use client on-load script, varify change state is not awaiting approval and role as well (otherwise will apply to all others) and use below code to stop adding/removing any attachment , but user would be able to read existing attachments,
g_form.disableAttachments
Hope this will help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2023 09:19 PM
@Adam95 there can be multiple other way but I can implement in this way,
Use client on-load script, varify change state is not awaiting approval and role as well (otherwise will apply to all others) and use below code to stop adding/removing any attachment , but user would be able to read existing attachments,
g_form.disableAttachments
Hope this will help you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 05:24 AM
Thanks for your advice. Yes, that would work for client side., what about server side. Could create acl on sys_attachment but how to check for the change request state?