Skip to content

Commit b3cc86c

Browse files
committed
feat(invitations): Expand invitation context to support products
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent a449597 commit b3cc86c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/controlplane/pkg/biz/orginvitation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ type OrgInvitationContext struct {
6565
ProjectIDToJoin uuid.UUID `json:"project_id_to_join,omitempty"`
6666
// ProjectRole is the role to assign to the user in the project
6767
ProjectRole authz.Role `json:"project_role,omitempty"`
68+
// ProductIDToJoin is the ID of the product to join when accepting the invitation
69+
ProductIDToJoin uuid.UUID `json:"product_id_to_join,omitempty"`
70+
// ProductRole is the role to assign to the user in the product
71+
ProductRole authz.Role `json:"product_role,omitempty"`
6872
}
6973

7074
type OrgInvitationRepo interface {

0 commit comments

Comments
 (0)