mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
null check user_id
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = UniversityController =
|
||||
|
||||
getIndexPage: (req, res)->
|
||||
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)->
|
||||
if response?.alternative?.name == "instapage"
|
||||
return res.redirect("/i/university")
|
||||
|
||||
Reference in New Issue
Block a user