Name

sn_ex_sp.FavoriteSecurityKBSNC

Description

WARNING Customers should NOT modify this script The purpose of this script include is to provide default behaviours for the FavoriteSecurityKB script include. To change the behaviour of these methods (or add new methods), Customers should override/add new methods to the FavoriteSecurityKB script include.

Script

var FavoriteSecurityKBSNC = Class.create();
FavoriteSecurityKBSNC.prototype = {
  initialize: function() {},

  /**
   * Return true if the favorite is visible on portal
   * @parm gr - GlideRecord - The original record that is favorited by the user
   * @return boolean
   */
  canView: function(gr, isMobile) {
      return gr.isValidRecord() && gr.canRead();
  },

  /**
   * Return true if this extension point is to be run
   * @return boolean
   */
  applies: function(gr) {
      return gr.getTableName() == 'kb_knowledge';
  },

  type: 'FavoriteSecurityKBSNC'
};

Sys ID

1cbc6bb707e541108d6d78e99cd30044

Offical Documentation

Official Docs: