mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 17:33:38 +00:00
enable affiliations UI
This commit is contained in:
parent
d7a341f59b
commit
bfb2f636cd
2 changed files with 2 additions and 3 deletions
|
@ -68,7 +68,6 @@ module.exports =
|
|||
shouldAllowEditingDetails: shouldAllowEditingDetails
|
||||
languages: Settings.languages,
|
||||
accountSettingsTabActive: true
|
||||
showAffiliationsUI: (req.query?.aff == "true") or false
|
||||
|
||||
sessionsPage: (req, res, next) ->
|
||||
user = AuthenticationController.getSessionUser(req)
|
||||
|
|
|
@ -9,7 +9,7 @@ block content
|
|||
.page-header
|
||||
h1 #{translate("account_settings")}
|
||||
.account-settings(ng-controller="AccountSettingsController", ng-cloak)
|
||||
if locals.showAffiliationsUI && hasFeature('affiliations')
|
||||
if hasFeature('affiliations')
|
||||
include settings/user-affiliations
|
||||
|
||||
form-messages(for="settingsForm")
|
||||
|
@ -22,7 +22,7 @@ block content
|
|||
h3 #{translate("update_account_info")}
|
||||
form(async-form="settings", name="settingsForm", method="POST", action="/user/settings", novalidate)
|
||||
input(type="hidden", name="_csrf", value=csrfToken)
|
||||
if !(locals.showAffiliationsUI && hasFeature('affiliations'))
|
||||
if !hasFeature('affiliations')
|
||||
if !externalAuthenticationSystemUsed()
|
||||
.form-group
|
||||
label(for='email') #{translate("email")}
|
||||
|
|
Loading…
Reference in a new issue