mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
a815c6a3e8
commit
1d13f41163
1 changed files with 2 additions and 3 deletions
|
@ -420,10 +420,9 @@ module.exports = ProjectController = {
|
||||||
user
|
user
|
||||||
) {
|
) {
|
||||||
if (req.ip !== user.lastLoginIp) {
|
if (req.ip !== user.lastLoginIp) {
|
||||||
return NotificationsBuilder.ipMatcherAffiliation(
|
return NotificationsBuilder.ipMatcherAffiliation(user._id).create(
|
||||||
user._id,
|
|
||||||
req.ip
|
req.ip
|
||||||
).create()
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue