mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Remove the email when user id is added to project
This commit is contained in:
parent
826295167f
commit
ce039f8cd3
2 changed files with 0 additions and 7 deletions
|
@ -130,11 +130,6 @@ module.exports = CollaboratorsHandler =
|
||||||
else
|
else
|
||||||
return callback(new Error("unknown privilegeLevel: #{privilegeLevel}"))
|
return callback(new Error("unknown privilegeLevel: #{privilegeLevel}"))
|
||||||
|
|
||||||
# Do these in the background
|
|
||||||
UserGetter.getUser user_id, {email: 1}, (error, user) ->
|
|
||||||
if error?
|
|
||||||
logger.error {err: error, project_id, user_id}, "error getting user while adding to project"
|
|
||||||
CollaboratorsEmailHandler.notifyUserOfProjectShare project_id, user.email
|
|
||||||
ContactManager.addContact adding_user_id, user_id
|
ContactManager.addContact adding_user_id, user_id
|
||||||
|
|
||||||
Project.update { _id: project_id }, { $addToSet: level }, (error) ->
|
Project.update { _id: project_id }, { $addToSet: level }, (error) ->
|
||||||
|
|
|
@ -180,8 +180,6 @@ describe "CollaboratorsHandler", ->
|
||||||
@Project.findOne = sinon.stub().callsArgWith(2, null, @project = {})
|
@Project.findOne = sinon.stub().callsArgWith(2, null, @project = {})
|
||||||
@ProjectEntityHandler.flushProjectToThirdPartyDataStore = sinon.stub().callsArg(1)
|
@ProjectEntityHandler.flushProjectToThirdPartyDataStore = sinon.stub().callsArg(1)
|
||||||
@CollaboratorHandler.addEmailToProject = sinon.stub().callsArgWith(4, null, @user_id)
|
@CollaboratorHandler.addEmailToProject = sinon.stub().callsArgWith(4, null, @user_id)
|
||||||
@UserGetter.getUser = sinon.stub().callsArgWith(2, null, @user = { _id: @user_id, email: @email })
|
|
||||||
@CollaboratorsEmailHandler.notifyUserOfProjectShare = sinon.stub()
|
|
||||||
@ContactManager.addContact = sinon.stub()
|
@ContactManager.addContact = sinon.stub()
|
||||||
|
|
||||||
describe "as readOnly", ->
|
describe "as readOnly", ->
|
||||||
|
|
Loading…
Reference in a new issue