- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 04:33 AM
Here we have "Republish " button, it should be visible only ---who are having " kb_retire" role OR who are the author in KB article. My condition is not working.....
if you see below image i am not a Author of this article and i don't have kb_retire role, but it is visible me
it should be visible only=-------who are having " kb_retire" role OR who are the author in KB article.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 06:08 AM
can you try now
gs.getUser().getRoles().indexOf('kb_retire') >= 0 || current.author==gs.getUserID() || !(gs.getUser().getRoles().indexOf('admin') >= 0 )

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 04:40 AM
HI Chanikya,
Yes you are write.
Can you try keeping only this conditions and check if it is visible or not.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 04:56 AM
with this condition it is visible,
i have admin role,
but i don't have "kb_retire" and i m not a author of the KB record. but still visible......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 05:09 AM
Hi Karthik,
By default admin has access to the Knowledge base.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2018 05:21 AM
Hi Midhun,
Can we restrict " republish" button to admin role users and it should be visible to only Kb_retire role users and how are Author of this KB record .