agola icon indicating copy to clipboard operation
agola copied to clipboard

*: implement org member adding modes: direct or invitation

Open alessandro-sorint opened this issue 3 years ago • 5 comments

FIX #42

This allow users owner to create invitation to an organization. When create an invitation is is possible to choose the user role. If the user accept the invitation he will be added to the organization with the specified role; if he refuse the invitation will be deleted.

Add Invitation type with the following fields:

  • UserID string
  • OrganizationID string
  • Role MemberRole
  • CreatorUserID string
  • CreatedAt time.Time

The user owner can create an invitation with api: POST /orgs/{orgref}/invitations

An user owner can get org invitations with api: GET /orgs/{orgref}/invitations

The current user can give the invitations wiith api: GET /user/invitations

The current user can accept or refuse the invitation, the user owner can cancel it with api: PUT /invitations/{invitationid}/actions

To get a specific invitation use the api: GET /invitations/{invitationid}

In the Gateway config I add the field enableInvitation: if false it disable invitation creation and actions.

alessandro-sorint avatar Nov 29 '21 15:11 alessandro-sorint

@sgotti can you do the review please?

alessandro-sorint avatar Feb 08 '22 08:02 alessandro-sorint

@sgotti can you do the review please?

alessandro-sorint avatar Sep 05 '22 10:09 alessandro-sorint

@sgotti can you do the review please?

alessandro-sorint avatar Sep 08 '22 08:09 alessandro-sorint

@sgotti can you do the review please?

alessandro-sorint avatar Sep 16 '22 07:09 alessandro-sorint

@sgotti can you do the review please?

alessandro-sorint avatar Sep 21 '22 11:09 alessandro-sorint

@sgotti can you do the review please?

alessandro-sorint avatar Sep 28 '22 07:09 alessandro-sorint