diff options
author | David Mehren | 2020-11-27 18:31:19 +0100 |
---|---|---|
committer | GitHub | 2020-11-27 18:31:19 +0100 |
commit | 61f54db63eea7e590cd751d4878d1c445c7f9cf8 (patch) | |
tree | be3a61e1aa170556c7370b45e1792a0ba0dbbd52 /lib/web/note/controller.js | |
parent | 07f72adc548ab8b30c4dbcc948f7cf166fdcf0db (diff) | |
parent | 97312b5ed3db8e5967184fc2f693a47dcba091f5 (diff) |
Merge pull request #596 from hedgedoc/remove-pdf-export-code
Remove pdf export code
Diffstat (limited to '')
-rw-r--r-- | lib/web/note/controller.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/web/note/controller.js b/lib/web/note/controller.js index f79574df..45aea9e2 100644 --- a/lib/web/note/controller.js +++ b/lib/web/note/controller.js @@ -110,14 +110,6 @@ exports.doAction = function (req, res, next) { case 'info': noteActions.getInfo(req, res, note) break - case 'pdf': - if (config.allowPDFExport) { - noteActions.createPDF(req, res, note) - } else { - logger.error('PDF export failed: Disabled by config. Set "allowPDFExport: true" to enable. Check the documentation for details') - errors.errorForbidden(res) - } - break case 'gist': noteActions.createGist(req, res, note) break |