diff --git a/helpers/functions/isFreePublicClaim.js b/helpers/functions/isFreePublicClaim.js index d8e15894..c58dccee 100644 --- a/helpers/functions/isFreePublicClaim.js +++ b/helpers/functions/isFreePublicClaim.js @@ -1,11 +1,9 @@ const logger = require('winston'); const licenses = ['Creative Commons', 'Public Domain', 'CC Attribution-NonCommercial 4.0 International']; + module.exports = ({ value }) => { logger.debug('checking isFreePublicClaim ?'); - if ( - (Array.asList(licenses).contains(value.stream.metadata.license)) && - (!value.stream.metadata.fee || value.stream.metadata.fee.amount === 0) - ) { + if ((licenses.includes(value.stream.metadata.license)) && (!value.stream.metadata.fee || value.stream.metadata.fee.amount === 0)) { return true; } else { return false; diff --git a/views/partials/publish.handlebars b/views/partials/publish.handlebars index 1a083f34..a8d7b2ed 100644 --- a/views/partials/publish.handlebars +++ b/views/partials/publish.handlebars @@ -18,9 +18,9 @@