Want to show checkout UI action on Knowledge block only for knowledge managers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 02:21 AM
Hi Team,
We want to show checkout Ui action on Knowledge block only for Knowledge manager role, I see we are having "Checkout" UI action same for Knowledge articles and blocks. Please suggest how to restrict, thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 03:16 AM
Hi @Ash41,
UI Actions have a 'Condition' field which provide the capability and configuration you require.
If you simply want to restrict this button for user with the Knowledge Manager role, enter the following syntax:
gs.hasRole('knowledge_manager')
Please be mindful of any existing conditions when updating this value.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 03:51 AM
Yes, I know but we are using same OOB UI Action for Knowledge articles and Knowledge Blocks as well so need to restrict only for knowledge blocks
