diff --git a/internal/auth/repository/eventsourcing/eventstore/org.go b/internal/auth/repository/eventsourcing/eventstore/org.go index c12fa21a7c..6c3e7704eb 100644 --- a/internal/auth/repository/eventsourcing/eventstore/org.go +++ b/internal/auth/repository/eventsourcing/eventstore/org.go @@ -28,7 +28,7 @@ type OrgRepository struct { Eventstore eventstore.Eventstore View *auth_view.View SystemDefaults systemdefaults.SystemDefaults - Query query.Queries + Query *query.Queries } func (repo *OrgRepository) GetDefaultOrgIAMPolicy(ctx context.Context) (*iam_model.OrgIAMPolicyView, error) { diff --git a/internal/auth/repository/eventsourcing/repository.go b/internal/auth/repository/eventsourcing/repository.go index 978fc75511..aee8fba363 100644 --- a/internal/auth/repository/eventsourcing/repository.go +++ b/internal/auth/repository/eventsourcing/repository.go @@ -161,6 +161,7 @@ func Start(conf Config, authZ authz.Config, systemDefaults sd.SystemDefaults, co View: view, SystemDefaults: systemDefaults, Eventstore: es, + Query: queries, }, eventstore.IAMRepository{ IAMID: systemDefaults.IamID,