Name
sn_publications.PublicationsUtil
Description
No description available
Script
var PublicationsUtil = Class.create();
PublicationsUtil.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
checkApprovalEligibility: function(document_id) {
var gr = new GlideRecord('sn_publications_publication');
if (gr.canRead() && gr.get(document_id)) {
var start = (new GlideDateTime(gr.getValue("publish_date"))).getNumericValue();
var now = new GlideDateTime().getNumericValue();
if (now >= start) {
return true;
}
else{
return false;
}
}
},
type: 'PublicationsUtil'
});
Sys ID
a243ca8487aa0910581f0e9d0ebb35fc