Updated duplicated membership error
This commit is contained in:
parent
8f6b5ddf22
commit
3b3c55130f
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ $utopia->post('/v1/teams/:teamId/memberships')
|
|||
|
||||
foreach ($memberships as $member) {
|
||||
if ($member->getAttribute('userId') == $invitee->getUid()) {
|
||||
throw new Exception('User has already been invited or is already a member of this team', 400);
|
||||
throw new Exception('User has already been invited or is already a member of this team', 409);
|
||||
}
|
||||
|
||||
if ($member->getAttribute('userId') == $user->getUid() && in_array('owner', $member->getAttribute('roles', []))) {
|
||||
|
|
Loading…
Reference in a new issue