Merge pull request #2045 from overleaf/hb-fix-ipmatcher-dash-call

checking ip matcher on dash load correctly

GitOrigin-RevId: dae581808d0bdc57b7bbc3601729e54e773b6c7f
This commit is contained in:
Simon Detheridge 2019-08-07 15:04:34 +01:00 committed by sharelatex
parent a815c6a3e8
commit 1d13f41163

View file

@ -420,10 +420,9 @@ module.exports = ProjectController = {
user
) {
if (req.ip !== user.lastLoginIp) {
return NotificationsBuilder.ipMatcherAffiliation(
user._id,
return NotificationsBuilder.ipMatcherAffiliation(user._id).create(
req.ip
).create()
)
}
})
}