Hide "Actions" Button from kb_article view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2023 08:55 AM
How can I hide the button in the photo below for groups that are not responsible for the KB?
I used this
<j:if test="${gs.hasRole('itil')}">
<j:if test="${showUpdateAction}">
<button id="editArticle" title="${gs.getMessage('Edit content')}" class="btn btn-default navbar-btn snc-article-header-toolbar-button">${gs.getMessage("Edit")}</button>
</j:if>
</j:if>.
But didn't work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2023 01:30 PM
Hi @Klug,
I believe you don't have to update the script.
Make sure the groups who shouldn't be able to edit the articles don't have the rights to update them.
So in other words, update your ACLS to meet your requirements.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2023 03:54 PM
Hi, @Peter Bodelier. Thank you for your response. I will check the ACLs. I would like to know if these ACLs are in the kb_knowledge table or elsewhere?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2023 04:51 PM
Hi @Klug,
Yes they should be for kb_knowledge.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2023 09:53 PM
Hi @Klug
The visibility of the Edit Article action is controlled by the function canContributeToKnowledgeBase in the script include KBViewModelSNC.
Basically the action Edit Article will be visible for those who are contributors.
You can also look into this function to customize the visibility of the Action [actionMenuLabel] button
Let me know if it works for you.
Cheers,
Tai Vu