Want to show checkout UI action on Knowledge block only for knowledge managers

Ash41
Kilo Sage

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.

@Ankur Bawiskar 

2 REPLIES 2

Robbie
Kilo Patron

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

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