Move the new logic to the externalAuthenticationSystemUsed function
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -148,7 +148,7 @@ block content
|
||||
|
||||
hr
|
||||
|
||||
if !externalAuthenticationSystemUsed() || (settings.createV1AccountOnLogin && settings.overleaf)
|
||||
if !externalAuthenticationSystemUsed()
|
||||
|
||||
p.small
|
||||
| #{translate("newsletter_info_and_unsubscribe")}
|
||||
|
||||
Reference in New Issue
Block a user