fix: get iam permissions (#713)

This commit is contained in:
Livio Amstutz 2020-09-08 19:05:12 +02:00 committed by GitHub
parent afaf798940
commit 619d194044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,8 +104,8 @@ func (repo *UserGrantRepo) SearchMyZitadelPermissions(ctx context.Context) ([]st
}, },
{ {
Key: user_model.UserMembershipSearchKeyResourceOwner, Key: user_model.UserMembershipSearchKeyResourceOwner,
Method: global_model.SearchMethodEquals, Method: global_model.SearchMethodIsOneOf,
Value: ctxData.OrgID, Value: []string{repo.IamID, ctxData.OrgID},
}, },
}, },
}) })