mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Pass req to function.
This commit is contained in:
@@ -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)->
|
||||
|
||||
Reference in New Issue
Block a user