1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-22 17:46:57 +00:00

Revert "Move the new logic to the externalAuthenticationSystemUsed function"

This reverts commit 34009fbf59cc6597b08e9262ea274ce266baa8fe.
This commit is contained in:
Shane Kilkelly 2018-08-31 13:57:27 +01:00
parent 40a500648c
commit 27a2e06d7b
2 changed files with 2 additions and 2 deletions
services/web/app
coffee/infrastructure
views/user

View file

@ -2,7 +2,7 @@ Settings = require 'settings-sharelatex'
module.exports = Features =
externalAuthenticationSystemUsed: ->
Settings.ldap? or Settings.saml? or (Settings.overleaf?.oauth? && !Settings.createV1AccountOnLogin)
Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth?
hasFeature: (feature) ->
switch feature

View file

@ -148,7 +148,7 @@ block content
hr
if !externalAuthenticationSystemUsed()
if !externalAuthenticationSystemUsed() || (settings.createV1AccountOnLogin && settings.overleaf)
p.small
| #{translate("newsletter_info_and_unsubscribe")}