Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

madfisher's avatar

Send Invite as non owner

Hi, we have Spark and want to allow invitations to a team by users that are not owners of the team. I have opened up the form to allow the form component to show, however when the invite is sent, we get a 403 Forbidden error for non owners. Does anybody know how we can open access for other team roles?

0 likes
2 replies
Cronix's avatar

In the CreateInvitationRequest form request, it authorizes as such

public function authorize()
{
    return $this->user()->ownsTeam($this->team);
}

So you'd need to override that. You'll probably want to make sure that at least $this->user() is ON the team.

Please or to participate in this conversation.