Open joshsmith opened 6 years ago
We want to add an InvitedUser with the following attributes:
InvitedUser
email
role
name
And the following relationships:
invitee
user
inviter
project
We’ll need create, update, index and show endpoints.
If inviting to a project, the policy should check permissions similar to how ProjectUser works.
ProjectUser
When the invite flow is complete, ie to claim an invite, we’ll need to:
invited_user
invitee_id
project_user
It may make sense to do this on the user create endpoint by specifying the InvitedUser id as a relationship.
id
Sorry for adding to this bug. Trying to get the attention of @joshsmith regarding another repo but all the emails are bouncing. @joshsmith could you reach at me?
Problem
We want to add an
InvitedUser
with the following attributes:email
- string; requiredrole
- string; optionalname
- string; optionalAnd the following relationships:
invitee
- optional; eventually set to theuser
created from this inviteinviter
- required; theuser
who created the inviteproject
- optional; the project the invite is forWe’ll need create, update, index and show endpoints.
If inviting to a
project
, the policy should check permissions similar to howProjectUser
works.When the invite flow is complete, ie to claim an invite, we’ll need to:
invited_user
’sinvitee_id
project_user
for theproject
with the specifiedrole
It may make sense to do this on the user create endpoint by specifying the
InvitedUser
id
as a relationship.