Pass req to function.

This commit is contained in:
Shane Kilkelly 2016-09-23 16:21:07 +01:00
parent 02587377a2
commit 7384a08cb4

View file

@ -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)->