From 1a1a387301e11f953e50ddd6b8b6574ba8f4e5b1 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Tue, 7 Jan 2020 09:23:36 -0600 Subject: [PATCH] Merge pull request #2485 from overleaf/jel-add-saml-feature-check Add SAML feature check back to portals and user settings GitOrigin-RevId: 758b6debdfab057078f53827bc49f19aa4eada59 --- .../main/affiliations/controllers/UserAffiliationsController.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/frontend/js/main/affiliations/controllers/UserAffiliationsController.js b/services/web/frontend/js/main/affiliations/controllers/UserAffiliationsController.js index 1bcd215b6d..828fc59ebe 100644 --- a/services/web/frontend/js/main/affiliations/controllers/UserAffiliationsController.js +++ b/services/web/frontend/js/main/affiliations/controllers/UserAffiliationsController.js @@ -47,6 +47,8 @@ define(['base'], App => } } const _ssoAvailable = affiliation => { + if (!ExposedSettings.hasSamlFeature) return false + if (!affiliation) { return false }