Want to hide Delete option for Incident

ashish9
Tera Contributor

I do not want anyone to delete Incident from Incident record or from the List view as well.

 

What will be the best option

1 ACCEPTED SOLUTION

Todd Romansky
Tera Guru

Hi @ashish9 ,

 

Out of the box, the only users who can delete an Incident record must have either the "admin" or "itil_admin" role.  If your normal "itil" users are able to see the Delete button in the form or are able to delete an Incident from list view, then a custom ACL was likely created that grants them the ability to delete. To limit anyone from being able to delete an Incident from any view, your best approach is to update the "delete" ACLs on the Incident table.  I would recommend allowing your "admin" users to still be able to delete the records, but if you truly want to prevent anyone from deleting Incidents, then your delete ACLs should hard code in the "Script" field "answer = false;" (note: you must click the "Advanced" checkbox to see the Script field).

incident_aclwwwwwww.PNG

View solution in original post

10 REPLIES 10

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Just Make sure you have 1 Delete ACL on the table. 

In that ACL just add Answer = false in the script. This will make sure that current.canDelete() also returns false for all ui actions.

 

-Anurag