Removed unused var
This commit is contained in:
parent
83363af85b
commit
e4c7d1660a
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ $utopia->post('/v1/teams/:teamId/memberships')
|
||||||
->param('roles', [], function () { return new ArrayList(new Text(128)); }, 'Invite roles array. Learn more about [roles and permissions](/docs/permissions).')
|
->param('roles', [], function () { return new ArrayList(new Text(128)); }, 'Invite roles array. Learn more about [roles and permissions](/docs/permissions).')
|
||||||
->param('redirect', '', function () use ($clients) { return new Host($clients); }, 'Reset page to redirect user back to your app from the invitation email.')
|
->param('redirect', '', function () use ($clients) { return new Host($clients); }, 'Reset page to redirect user back to your app from the invitation email.')
|
||||||
->action(
|
->action(
|
||||||
function ($teamId, $email, $name, $roles, $redirect) use ($request, $response, $register, $project, $user, $audit, $projectDB) {
|
function ($teamId, $email, $name, $roles, $redirect) use ($response, $register, $project, $user, $audit, $projectDB) {
|
||||||
$name = (empty($name)) ? $email : $name;
|
$name = (empty($name)) ? $email : $name;
|
||||||
$team = $projectDB->getDocument($teamId);
|
$team = $projectDB->getDocument($teamId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue