mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 17:51:51 +02:00
Merge pull request #22967 from overleaf/jel-user-settings-sso-institution
[web] Fix SSO available check on user settings page GitOrigin-RevId: e8322eb9d9cacad26054fc4a6186e41f66de7d22
This commit is contained in:
@@ -17,12 +17,7 @@ export const ssoAvailableForDomain = (
|
||||
|
||||
export const ssoAvailableForInstitution = (institution: Institution | null) => {
|
||||
const { hasSamlBeta, hasSamlFeature } = getMeta('ol-ExposedSettings')
|
||||
if (
|
||||
!hasSamlFeature ||
|
||||
!institution ||
|
||||
!institution.confirmed ||
|
||||
!institution.isUniversity
|
||||
) {
|
||||
if (!hasSamlFeature || !institution || !institution.confirmed) {
|
||||
return false
|
||||
}
|
||||
if (institution.ssoEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user