From 92fb83e665a1a6c5fd32d27c08ac9ad40bb9c6cf Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 29 May 2018 10:05:50 +0100 Subject: [PATCH] Use the correct linkedFileData var --- .../coffee/Features/LinkedFiles/LinkedFilesController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee b/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee index 807325371f..e0a5998327 100644 --- a/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee +++ b/services/web/app/coffee/Features/LinkedFiles/LinkedFilesController.coffee @@ -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) ->