Explorar o código

Enable the external auth switches when OL OAuth in use

James Allen %!s(int64=9) %!d(string=hai) anos
pai
achega
ca0982a909

+ 1 - 1
services/web/app/coffee/infrastructure/ExpressLocals.coffee

@@ -89,7 +89,7 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
 
 
 	webRouter.use (req, res, next)->
 	webRouter.use (req, res, next)->
 		req.externalAuthenticationSystemUsed = res.locals.externalAuthenticationSystemUsed = ->
 		req.externalAuthenticationSystemUsed = res.locals.externalAuthenticationSystemUsed = ->
-			Settings.ldap? or Settings.saml?
+			Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth?
 		next()
 		next()
 
 
 	webRouter.use (req, res, next)->
 	webRouter.use (req, res, next)->