Skip to content

Commit aa02aeb

Browse files
authored
chore(products): fix query for non-inherited membershps (#2301)
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
1 parent 484a8ce commit aa02aeb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controlplane/pkg/data/project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ func (r *ProjectRepo) queryMembership(orgID uuid.UUID, projectID uuid.UUID, memb
337337
membership.MemberID(memberID),
338338
membership.ResourceTypeEQ(authz.ResourceTypeProject),
339339
membership.ResourceID(projectID),
340+
membership.ParentIDIsNil(), // Only top-level memberships
340341
).WithOrganization()
341342
}
342343

0 commit comments

Comments
 (0)