SNC.KnowledgeHelper.canContribute

Naveen Kumar J
Tera Expert

Hi,

Where i can find the code defined for knowledgeHelper.canContribute?

I searched for all the script includes , but does not find the exact one .

Thanks,

Naveen

8 REPLIES 8

The meaning of canContribute() seems the user who can at least manage to contribute one of the knowledge base, but where this code is defined?


Partially this means that a user has at least "knowledge" role


Uncle Rob
Kilo Patron

I THINK the code just checks against whatever data you've defined here:   Managing Knowledge - ServiceNow Wiki



And the object they use to do so is locked down so it can't be modified.


dave_slusher
ServiceNow Employee
ServiceNow Employee

The other answers pretty much have it covered. It is not implemented in a Script Include, this is core application code that is exposed to scripting via an interface. canContribute will return true if the user is admin, is the owner or manager of that KB, or if that user has a matching user criteria. The wiki article says that if there are no user criteria any ESS user can contribute but the code seems to contradict that.