mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01: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:
committed by
sharelatex
parent
a815c6a3e8
commit
1d13f41163
@@ -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()
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user