mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Pass req
to function.
This commit is contained in:
parent
02587377a2
commit
7384a08cb4
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ module.exports = ProjectController =
|
|||
project_id = req.params.Project_id
|
||||
projectName = req.body.projectName
|
||||
logger.log project_id:project_id, projectName:projectName, "cloning project"
|
||||
if !AuthenticationController.isUserLoggedIn()
|
||||
if !AuthenticationController.isUserLoggedIn(req)
|
||||
return res.send redir:"/register"
|
||||
currentUser = AuthenticationController.getSessionUser(req)
|
||||
projectDuplicator.duplicate currentUser, project_id, projectName, (err, project)->
|
||||
|
|
Loading…
Reference in a new issue