Merge pull request #2441 from overleaf/em-cg-null-users

Remove existing sessions of deleted users

GitOrigin-RevId: cde9f8421fd9745b0922849a2269b44508d670f1
This commit is contained in:
Timothée Alby
2019-12-10 13:40:05 +05:30
committed by Copybot
parent 827fb7119c
commit 7c9e83de2a
5 changed files with 40 additions and 4 deletions
@@ -84,6 +84,9 @@ describe('ProjectController', function() {
getSessionUser: sinon.stub().returns(this.user),
isUserLoggedIn: sinon.stub().returns(true)
}
this.UserController = {
logout: sinon.stub()
}
this.AnalyticsManager = { getLastOccurrence: sinon.stub() }
this.TokenAccessHandler = {
getRequestToken: sinon.stub().returns(this.token),
@@ -157,6 +160,7 @@ describe('ProjectController', function() {
'./ProjectDuplicator': this.ProjectDuplicator,
'./ProjectCreationHandler': this.ProjectCreationHandler,
'../Editor/EditorController': this.EditorController,
'../User/UserController': this.UserController,
'./ProjectHelper': this.ProjectHelper,
'../Subscription/SubscriptionLocator': this.SubscriptionLocator,
'../Subscription/LimitationsManager': this.LimitationsManager,