agola
agola copied to clipboard
*: implement org member adding modes: direct or invitation
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.
@sgotti can you do the review please?
@sgotti can you do the review please?
@sgotti can you do the review please?
@sgotti can you do the review please?
@sgotti can you do the review please?
@sgotti can you do the review please?