mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
null check user_id
This commit is contained in:
parent
8558ce1f75
commit
6141eb4a44
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ module.exports = UniversityController =
|
||||||
|
|
||||||
getIndexPage: (req, res)->
|
getIndexPage: (req, res)->
|
||||||
user_id = AuthenticationController.getLoggedInUserId(req)
|
user_id = AuthenticationController.getLoggedInUserId(req)
|
||||||
client = sixpack.client(user_id.toString() || req.ip)
|
client = sixpack.client(user_id?.toString() || req.ip)
|
||||||
client.participate 'instapage-pages', ['default', 'instapage'], (err, response)->
|
client.participate 'instapage-pages', ['default', 'instapage'], (err, response)->
|
||||||
if response?.alternative?.name == "instapage"
|
if response?.alternative?.name == "instapage"
|
||||||
return res.redirect("/i/university")
|
return res.redirect("/i/university")
|
||||||
|
|
Loading…
Reference in a new issue