File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ def deactivate(self):
251251 """
252252 if not self .deactivated :
253253 self .deactivated = timezone .now ()
254- if not self .delegation_protocol or self . delegation_protocol == IntegrationType . AFFILIATION_VIA_ORCID . value :
254+ if not self .delegation_protocol :
255255 self .sso_availability = SSOAvailability .UNAVAILABLE .value
256256 else :
257257 self .sso_availability = SSOAvailability .HIDDEN .value
@@ -270,7 +270,7 @@ def reactivate(self):
270270 """
271271 if self .deactivated :
272272 self .deactivated = None
273- if not self .delegation_protocol or self . delegation_protocol == IntegrationType . AFFILIATION_VIA_ORCID . value :
273+ if not self .delegation_protocol :
274274 self .sso_availability = SSOAvailability .UNAVAILABLE .value
275275 else :
276276 self .sso_availability = SSOAvailability .HIDDEN .value
You can’t perform that action at this time.
0 commit comments