⚠️ This repository has been moved to the monorepo jsreport/jsreport
jsreport extension allowing to freeze editing of templates
npm install jsreport-freeze
You can avoid jsreport templates editing through config file:
{
"extensions" {
"freeze": {
"hardFreeze": true
}
}
}
Second option is to freeze editing in jsreport studio. This can be found in menu Actions->Freeze Editing
. Note this options is available only for the jsreport administrator. The editing can be also afterwards enabled again using menu Actions->Release Freeze
.
You can apply this extension also manually to jsreport-core
var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-freeze')({})