Cannot invite team members without asking for paid subscription
I am having an issue with team invites. After I create a team and and invite a member to said team, the registration page forces the team member to subscribe to a plan.
What I need is for the team owner to pay the subscription fee and any added team members to be just that, free members that are just associated to that team.
Has anyone ran into this issue?
Maybe I am looking at this wrong and should instead setup user plans and just the CanJoinTeams trait on the User model.
For anyone else who ran into this issue, here I what I figured out. It might not be the best solution but it works.
The key point I was missing was when you use
Spark::noAdditionalTeams();
that implies a one-to-one with a team, period. In other words with no additional teams, being a team member prevents said email from making a team.
So basically, you just need to make a free and paid team plan. Then if the user is a team member (they are at the register page with an invite) you only provide the free plan as an option. If it is a normal registration, then you only provide the paid plan as an option.
You could also likely just use user plans and the CanJoinTeams trait and come up with something similar. However in my use case I need the team slugs.