From bfb2f636cdf50f0b5cf91019b7c51892af1893aa Mon Sep 17 00:00:00 2001 From: Tim Alby Date: Mon, 13 Aug 2018 14:59:39 +0200 Subject: [PATCH] enable affiliations UI --- .../web/app/coffee/Features/User/UserPagesController.coffee | 1 - services/web/app/views/user/settings.pug | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/User/UserPagesController.coffee b/services/web/app/coffee/Features/User/UserPagesController.coffee index 2a7ed62d02..5e6ea7d62b 100644 --- a/services/web/app/coffee/Features/User/UserPagesController.coffee +++ b/services/web/app/coffee/Features/User/UserPagesController.coffee @@ -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) diff --git a/services/web/app/views/user/settings.pug b/services/web/app/views/user/settings.pug index a43e81c12c..e4da83c1db 100644 --- a/services/web/app/views/user/settings.pug +++ b/services/web/app/views/user/settings.pug @@ -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")}