Move the new logic to the externalAuthenticationSystemUsed function

This commit is contained in:
Shane Kilkelly
2018-08-31 10:23:22 +01:00
parent be6720d805
commit 40a500648c
2 changed files with 2 additions and 2 deletions
@@ -2,7 +2,7 @@ Settings = require 'settings-sharelatex'
module.exports = Features =
externalAuthenticationSystemUsed: ->
Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth?
Settings.ldap? or Settings.saml? or (Settings.overleaf?.oauth? && !Settings.createV1AccountOnLogin)
hasFeature: (feature) ->
switch feature
+1 -1
View File
@@ -148,7 +148,7 @@ block content
hr
if !externalAuthenticationSystemUsed() || (settings.createV1AccountOnLogin && settings.overleaf)
if !externalAuthenticationSystemUsed()
p.small
| #{translate("newsletter_info_and_unsubscribe")}