mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 18:31:26 +00:00
Use the correct linkedFileData var
This commit is contained in:
parent
ce147b012f
commit
92fb83e665
1 changed files with 1 additions and 1 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue