mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01: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) => {
|
export const ssoAvailableForInstitution = (institution: Institution | null) => {
|
||||||
const { hasSamlBeta, hasSamlFeature } = getMeta('ol-ExposedSettings')
|
const { hasSamlBeta, hasSamlFeature } = getMeta('ol-ExposedSettings')
|
||||||
if (
|
if (!hasSamlFeature || !institution || !institution.confirmed) {
|
||||||
!hasSamlFeature ||
|
|
||||||
!institution ||
|
|
||||||
!institution.confirmed ||
|
|
||||||
!institution.isUniversity
|
|
||||||
) {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (institution.ssoEnabled) {
|
if (institution.ssoEnabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user