mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:58:02 +00:00
fix(query): only active by org by primary domain (#5610)
This commit is contained in:
parent
d981f0d348
commit
8b5217c06d
@ -118,6 +118,7 @@ func (q *Queries) OrgByPrimaryDomain(ctx context.Context, domain string) (_ *Org
|
|||||||
query, args, err := stmt.Where(sq.Eq{
|
query, args, err := stmt.Where(sq.Eq{
|
||||||
OrgColumnDomain.identifier(): domain,
|
OrgColumnDomain.identifier(): domain,
|
||||||
OrgColumnInstanceID.identifier(): authz.GetInstance(ctx).InstanceID(),
|
OrgColumnInstanceID.identifier(): authz.GetInstance(ctx).InstanceID(),
|
||||||
|
OrgColumnState.identifier(): domain_pkg.OrgStateActive,
|
||||||
}).ToSql()
|
}).ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.ThrowInternal(err, "QUERY-TYUCE", "Errors.Query.SQLStatement")
|
return nil, errors.ThrowInternal(err, "QUERY-TYUCE", "Errors.Query.SQLStatement")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user