mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
Added user to export call
fixes #2612 - added user to db.exportContent()
This commit is contained in:
parent
9c1fe62173
commit
910bab8a6e
@ -114,8 +114,7 @@ adminControllers = {
|
||||
},
|
||||
// frontend route for downloading a file
|
||||
exportContent: function (req, res) {
|
||||
/*jslint unparam:true*/
|
||||
api.db.exportContent().then(function (exportData) {
|
||||
api.db.exportContent.call({user: req.session.user}).then(function (exportData) {
|
||||
// send a file to the client
|
||||
res.set('Content-Disposition', 'attachment; filename="GhostData.json"');
|
||||
res.json(exportData);
|
||||
|
Loading…
Reference in New Issue
Block a user