From 619d19404491dab3725b154f69c07e093e67ca1b Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Tue, 8 Sep 2020 19:05:12 +0200 Subject: [PATCH] fix: get iam permissions (#713) --- .../auth/repository/eventsourcing/eventstore/user_grant.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/auth/repository/eventsourcing/eventstore/user_grant.go b/internal/auth/repository/eventsourcing/eventstore/user_grant.go index d0b5eb66b..078321f60 100644 --- a/internal/auth/repository/eventsourcing/eventstore/user_grant.go +++ b/internal/auth/repository/eventsourcing/eventstore/user_grant.go @@ -104,8 +104,8 @@ func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]st }, { Key: user_model.UserMembershipSearchKeyResourceOwner, - Method: global_model.SearchMethodEquals, - Value: ctxData.OrgID, + Method: global_model.SearchMethodIsOneOf, + Value: []string{repo.IamID, ctxData.OrgID}, }, }, })