Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
nannan00 committed Aug 1, 2024
1 parent e33956e commit 4427e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bk-user/bkuser/apis/login/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def _get_unique_enabled_tenant_idp() -> Dict | None:

idp = idps[0]
# 协同情况处理
# 非实名数据源不可被协同
# 非实名数据源不可被协同, 则说明是唯一认证源了
if not DataSource.objects.filter(id=idp["data_source_id"], type=DataSourceTypeEnum.REAL).exists():
return None
return idp

target_tenant_ids = list(
CollaborationStrategy.objects.filter(
Expand Down

0 comments on commit 4427e48

Please sign in to comment.