- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 12:46 PM
Hi,
How do I disable Delete option to ITIL users from the "Action on selected rows".I only want to remove it from the Affected CIs related list(task_ci table)
It should visible to Admin and Change manager team.
Could someone please help me on this.
Regards,
Mounika
Solved! Go to Solution.
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 12:50 PM
Hi Mounika
Delete is a UI action written on global table and is not specific to task_ci. So you might have to create a separate UI action Delete for task_ci and there you can add a condition
gs.hasRole("admin")||gs.hasRole("change_manager")
And for existing Delete UI action, you can add the below condition to existing condition to avoid showing the global delete for task_ci like below
current.getTableName()!='task_ci'
Kindly mark the comment as a correct answer and also helpful if it answers your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 12:59 PM
Why not adjust ACL instead of the button. It is Global button and i wont suggest that. Thoughts?
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 01:11 PM
Agreed, ACL is a good approach.
One thing i feel about ACL in these scenario , it does not always run successfully in one shot , most of the cases some existing ACL contradict then make some changes here and there 😛

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 01:14 PM
Yeah but change the condition in UI action which is global can impact on other forms and tables.
So ACL on this task_ci table will do the trick.
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 01:22 PM
No , you have to put the correct condition , it will work perfectly.
Agreed about ACL solution.