diff options
author | Tilman Vatteroth | 2020-11-26 20:52:57 +0100 |
---|---|---|
committer | Tilman Vatteroth | 2020-11-26 21:09:23 +0100 |
commit | 97312b5ed3db8e5967184fc2f693a47dcba091f5 (patch) | |
tree | dd3bc2b71d3bbdd80194696b7219ff09a44690ae /lib/web/note/controller.js | |
parent | 66ad73d853d15423c63b823102931b35ef93722a (diff) |
Remove pdf export code
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
Diffstat (limited to 'lib/web/note/controller.js')
-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 |