mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-22 06:07:59 +00: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:
parent
207f9d1fc4
commit
e1a2bccf53
1 changed files with 1 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue