Use the correct linkedFileData var

This commit is contained in:
Shane Kilkelly 2018-05-29 10:05:50 +01:00
parent ce147b012f
commit 92fb83e665

View file

@ -23,7 +23,7 @@ module.exports = LinkedFilesController = {
linkedFileData = Agent.sanitizeData(data)
linkedFileData.provider = provider
Agent.checkAuth project_id, data, user_id, (err, allowed) ->
Agent.checkAuth project_id, linkedFileData, user_id, (err, allowed) ->
return Agent.handleError(err, req, res, next) if err?
return res.sendStatus(403) if !allowed
Agent.writeIncomingFileToDisk project_id, linkedFileData, user_id, (error, fsPath) ->