fix: ensure domain policy is read for the correct org (#4872)

This commit is contained in:
Livio Spring
2022-12-13 07:37:50 +01:00
committed by GitHub
parent e4531291f5
commit 33e973f015
7 changed files with 27 additions and 16 deletions

View File

@@ -130,7 +130,7 @@ func AddHumanCommand(a *user.Aggregate, human *AddHuman, passwordAlg crypto.Hash
}
return func(ctx context.Context, filter preparation.FilterToQueryReducer) ([]eventstore.Command, error) {
domainPolicy, err := domainPolicyWriteModel(ctx, filter)
domainPolicy, err := domainPolicyWriteModel(ctx, filter, a.ResourceOwner)
if err != nil {
return nil, err
}