fix: filter of domain claimed users (#2752)

This commit is contained in:
Livio Amstutz
2021-11-29 17:36:24 +01:00
committed by GitHub
parent 209ea09e30
commit 7d45ae3c6c
3 changed files with 22 additions and 28 deletions
+1 -6
View File
@@ -168,12 +168,7 @@ func (l *Login) getClaimedUserIDsOfOrgDomain(ctx context.Context, orgName string
{
Key: usr_model.UserSearchKeyPreferredLoginName,
Method: domain.SearchMethodEndsWithIgnoreCase,
Value: domain.NewIAMDomainName(orgName, l.iamDomain),
},
{
Key: usr_model.UserSearchKeyResourceOwner,
Method: domain.SearchMethodNotEquals,
Value: authz.GetCtxData(ctx).OrgID,
Value: "@" + domain.NewIAMDomainName(orgName, l.iamDomain),
},
},
})