Refactor entry state toggle (#48)

* chore(editorialFeatures): extract editorial features toggle

* chore(refactor): rename function to make more contextual sense
This commit is contained in:
David Litvak Bruno
2017-11-09 11:24:07 +01:00
committed by Benedikt Rötsch
parent fc68385384
commit ae599ccdfe
3 changed files with 10 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
module.exports = (response) => {
return response.locals.settings.editorialFeatures && response.locals.currentApi.id === 'cpa'
}