mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Remove expiresAt
logic from acceptInvite
This commit is contained in:
parent
78570817d5
commit
78a410c39d
1 changed files with 0 additions and 6 deletions
|
@ -70,12 +70,6 @@ module.exports = CollaboratorsInviteHandler =
|
||||||
logger.log {err, projectId, inviteId}, "no matching invite found"
|
logger.log {err, projectId, inviteId}, "no matching invite found"
|
||||||
return callback(err)
|
return callback(err)
|
||||||
|
|
||||||
now = new Date()
|
|
||||||
if invite.expiresAt < now
|
|
||||||
err = new Errors.NotFoundError("invite expired")
|
|
||||||
logger.log {err, projectId, inviteId, expiresAt: invite.expiresAt}, "invite expired"
|
|
||||||
return callback(err)
|
|
||||||
|
|
||||||
# do the thing
|
# do the thing
|
||||||
existing_users = (project.collaberator_refs or [])
|
existing_users = (project.collaberator_refs or [])
|
||||||
existing_users = existing_users.concat(project.readOnly_refs or [])
|
existing_users = existing_users.concat(project.readOnly_refs or [])
|
||||||
|
|
Loading…
Reference in a new issue