mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Remove expiresAt logic from acceptInvite
This commit is contained in:
@@ -70,12 +70,6 @@ module.exports = CollaboratorsInviteHandler =
|
||||
logger.log {err, projectId, inviteId}, "no matching invite found"
|
||||
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
|
||||
existing_users = (project.collaberator_refs or [])
|
||||
existing_users = existing_users.concat(project.readOnly_refs or [])
|
||||
|
||||
Reference in New Issue
Block a user