Prevent user from deleting the attachment

kumaran
Giga Expert

I have a requirement to restrict user from deleting the attachment in requested item table.

If any one has implemented this requirement please share your thoughts.

Thanks in advance

9 REPLIES 9

christopheriron
Tera Expert

Hi Kumaran,



You should just be able to add an ACL to the sys_attachment table to prevent users from being able to delete them.



Kind regards


Rajesh T
Giga Expert

Create Delete operation ACL to the sys_attachment table.


Nitesh Asthana1
Kilo Guru

find_real_file.png


find_real_file.png


If you want restrict it for all non-admin users, write Script as per above screenshot, else specify the role who should be able to delete.


Thank you all for the quick reply.



I have to restrict for specific RITM ie for only certain Item name 'ABC'


for other requested it should work fine.



Also I cant define role restriction as any one will try to delete the attachment for that RITM.



Basically, if any one try to delete the attachment on specific RITM ( with item name as 'ABC'), then I should restrict.