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

View File

@@ -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},
},
},
})