on 2015 Dec 16 10:06 PM
Hi Experts ,
I have a query on how to restrict access to attachment in a document using script .Is there are way to throw an exception if a particular user or group tries to access attachment link in the toolbar .
Best Regards,
Piyush
Request clarification before answering.
Hi Piyush,
Are you referring to the top "Attachment" button or within an agreement where user inserts attachment via Contract Document?
I'm also looking for a way to restrict access to the top attachment button. If you already have a solution, can you please provide your script so I could review and see if we could implement within our system.
Thanks,
P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid that attachments is not a class included in IAPI, if it was you just need to create a script in event life cycle LOAD, and then put some logic to check if session user is not allowed and thrown an exception.
To check that go, Setup > System Setup > Script Definition
Create a new Script, choose Event Life Cycle choose LOAD, look for Attachments as a Class.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.