- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2024 06:54 AM
Im having an requirement that checkout button should be visible to tha knowledge authors of their own article other cann able to check out that some one can provide solution for this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-26-2024 07:54 AM
Hi @ Suji ,
So there's a few things in play and behind the scenes when it comes to KB versioning and the checkout process. The Checkout UI Action calls a Script Include named "KBVersioning" which then calls another Script Include named "KBVersioningSNC".
Specifically there's a method within this Script Include called canCheckout which assess various criteria such as if a user is the Article Owner, KB Manager or has certain roles such as knowledge_admin.
As per your requirement, the Article Author is not one of these criteria. You therefore need to override the canCheckout method in the 'KBVersioning' Script include by modifying canCheckout function with syntax as follows:
new KBVersioning().canCheckout(current))
(Note - you cannot update the Script Include 'KBVersioningSNC'. The 'KBVersioning' Script Include is in place for exactly this reason to allow you to override methods)
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
ā09-26-2024 07:54 AM
Hi @ Suji ,
So there's a few things in play and behind the scenes when it comes to KB versioning and the checkout process. The Checkout UI Action calls a Script Include named "KBVersioning" which then calls another Script Include named "KBVersioningSNC".
Specifically there's a method within this Script Include called canCheckout which assess various criteria such as if a user is the Article Owner, KB Manager or has certain roles such as knowledge_admin.
As per your requirement, the Article Author is not one of these criteria. You therefore need to override the canCheckout method in the 'KBVersioning' Script include by modifying canCheckout function with syntax as follows:
new KBVersioning().canCheckout(current))
(Note - you cannot update the Script Include 'KBVersioningSNC'. The 'KBVersioning' Script Include is in place for exactly this reason to allow you to override methods)
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
ā09-26-2024 09:00 AM
Hi Robbie thanks for your solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-27-2024 01:37 AM
My pleasure @ Suji .
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