Merge pull request #7210 from overleaf/jpa-switch-to-admin

[web] add a button for switching to the admin domain from www.

GitOrigin-RevId: 7e14b9c1415ef6cad5f369d77530599bac3148e7
This commit is contained in:
Jakob Ackermann
2022-03-31 11:37:49 +01:00
committed by Copybot
parent c8866bbda0
commit 4d18dcb377
6 changed files with 18 additions and 7 deletions
@@ -44,7 +44,7 @@ describe('AuthorizationMiddleware', function () {
'../Authentication/SessionManager': this.SessionManager,
'../TokenAccess/TokenAccessHandler': this.TokenAccessHandler,
'../Helpers/AdminAuthorizationHelper': {
shouldRedirectToAdminDomain: sinon.stub().returns(false),
canRedirectToAdminDomain: sinon.stub().returns(false),
},
},
})