-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Problem
We want to add an InvitedUser with the following attributes:
email- string; requiredrole- string; optionalname- string; optional
And the following relationships:
invitee- optional; eventually set to theusercreated from this inviteinviter- required; theuserwho created the inviteproject- optional; the project the invite is for
We’ll need create, update, index and show endpoints.
If inviting to a project, the policy should check permissions similar to how ProjectUser works.
When the invite flow is complete, ie to claim an invite, we’ll need to:
- create a user
- set the
invited_user’sinvitee_id - create a
project_userfor theprojectwith the specifiedrole
It may make sense to do this on the user create endpoint by specifying the InvitedUser id as a relationship.