From ca0982a909c388385c3a11e01c9404b9fa873c10 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 17 Nov 2017 17:16:12 +0000 Subject: [PATCH] Enable the external auth switches when OL OAuth in use --- services/web/app/coffee/infrastructure/ExpressLocals.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/ExpressLocals.coffee b/services/web/app/coffee/infrastructure/ExpressLocals.coffee index 0b30d11cc5..1f22b2d2c3 100644 --- a/services/web/app/coffee/infrastructure/ExpressLocals.coffee +++ b/services/web/app/coffee/infrastructure/ExpressLocals.coffee @@ -89,7 +89,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)-> webRouter.use (req, res, next)-> req.externalAuthenticationSystemUsed = res.locals.externalAuthenticationSystemUsed = -> - Settings.ldap? or Settings.saml? + Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth? next() webRouter.use (req, res, next)->