Display UI action "Submit for Review" button on Knowledge for all users.

kartik1
Tera Contributor

Can anybody please help - I want to show "Submit for review" UI action for all users 
Now it's only showing for User logged in is either the person who checked out the article or is a Knowledge Manager or a Knowledge Owner for that specific Knowledge Base.

 

(!(new KBCommonCustomSNC().isStackNameDialog()) && (new KBKnowledge().canPublish(current))) 

WHAT CONDITION NEEDS TO BE ADDED?? 

Thanks in advance

1 REPLY 1

Harneet Sital
Mega Sage
Mega Sage

You can simply remove this condition - '&& (new KBKnowledge().canPublish(current))) ' this will start showing the button for all the users but make sure the code in the UI action can perform the actions for the user who is trying to push the article to review. 

 

-Harneet Sital
Request you to please mark my answer as helpful or correct based on the impact
Find all my ServiceNow articles here